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 transaction accessor in Connection #646

Closed
FroMage opened this issue May 20, 2020 · 0 comments · May be fixed by #647
Closed

Add transaction accessor in Connection #646

FroMage opened this issue May 20, 2020 · 0 comments · May be fixed by #647
Milestone

Comments

@FroMage
Copy link

FroMage commented May 20, 2020

Once a transaction has been created with Connection.begin it will be associated with the connection, so its implementation keeps it in a field.

It can be useful to add an accessor for it, so that we can check if a connection is in a transaction already, and to obtain the transaction without having to hang on to the connection/transaction tuple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants