-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for query tagging #1133
Conversation
packages/driver/src/options.ts
Outdated
globals: { ...this.globals, ...globals }, | ||
}); | ||
} | ||
|
||
withTag(tag: string | null): Session { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure exactly what api we want here? It looks like the rust client has a withTag
api (also with reserved tag names) (https://github.com/edgedb/edgedb-rust/pull/364/files#diff-608add6cc9859de62fac8b605b75549b985354b28530c7c1b07180ccd86fd729R574), but the python implementation just exposes the underlying annotations? (https://github.com/edgedb/edgedb-python/pull/552/files#diff-ac82d0a568b6ac577eb791f28078350639f6ffd9b904254a17557bb7dff1fb62R416)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah maybe I should just stay with with_tag()
in Python too (so that the same tag limitation can be applied). cc @1st1 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
withQueryTag()
it is then.
packages/driver/src/options.ts
Outdated
globals: { ...this.globals, ...globals }, | ||
}); | ||
} | ||
|
||
withTag(tag: string | null): Session { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
withQueryTag()
it is then.
Depends on edgedb/edgedb#8036