-
Notifications
You must be signed in to change notification settings - Fork 189
Provide query read-only property on dbapi cursor #323
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
Conversation
trino/client.py
Outdated
return self._query_id | ||
|
||
@property | ||
def sql(self) -> Optional[str]: |
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.
Perhaps a better name is query
, it will follow the convention as used in query_id
. Psycopg
follow this as well.
3cda689
to
9ecf881
Compare
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.
LGTM % Please change a commit message to "Provide query
read-only property on dbapi"
9ecf881
to
42a90c1
Compare
42a90c1
to
e82423c
Compare
rebased |
e82423c
to
dc669a1
Compare
pre-commit failures would be fixed in #336 |
Description
Provide sql read-only property on dbapi cursor
Non-technical explanation
Release notes
( ) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
(x) Release notes are required, with the following suggested text:
* Provide executed SQL statement as a read-only property on dbapi's cursor