-
Notifications
You must be signed in to change notification settings - Fork 0
DBAPI based on Query Service #1
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
63c0263
to
baabab8
Compare
8117b8e
to
be55108
Compare
return self._tx_context.execute( | ||
query=query, | ||
parameters=parameters, | ||
commit_tx=self._autocommit, |
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.
question: I think if tx_context
is None we could do it, so autocommit
variable could be removed
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.
tx_context is None only in case of AUTOCOMMIT isolation level, but we have other levels with interactive transactions ON/OFF.
def _execute_generic_query( | ||
self, query: str, parameters: ParametersType | None = None | ||
) -> Iterator[ydb.convert.ResultSet]: | ||
return self._session.execute(query=query, parameters=parameters) |
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.
question: Why you don't use session_pool.retry_operation
?
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 will do it out of this PR
No description provided.