Skip to content
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

Merged
merged 6 commits into from
Dec 6, 2024
Merged

Add support for query tagging #1133

merged 6 commits into from
Dec 6, 2024

Conversation

jaclarke
Copy link
Member

Depends on edgedb/edgedb#8036

@jaclarke jaclarke marked this pull request as ready for review November 27, 2024 22:38
globals: { ...this.globals, ...globals },
});
}

withTag(tag: string | null): Session {
Copy link
Member Author

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)

Copy link
Member

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 ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

withQueryTag() it is then.

globals: { ...this.globals, ...globals },
});
}

withTag(tag: string | null): Session {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

withQueryTag() it is then.

@jaclarke jaclarke merged commit 70b7195 into master Dec 6, 2024
10 checks passed
@jaclarke jaclarke deleted the add-tags branch December 6, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants