-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
Support for TxOptions
when creating a transaction
#692
Comments
I found this in a merged PR. https://github.com/gobuffalo/pop/pull/594/files However, this forces the programmer to deal with a lower level API, making it hard to integrate with the ORM functionality provided by Is there not a simpler way to specify transaction options? |
Looking at the following in |
Description
After checking the documentation, it doesn't appear that
pop
supports creating a transaction withTxOptions
. I ran into this discovery after finding a need to explicitly set theIsolationLevel
in Postgres.If this feature is supported, it would be nice if it were more clearly documented, since it would appear to differ from the standard APIs for configuring these options.
Steps to Reproduce the Problem
TxOptions
using code discovery tools, autocompletionExpected Behavior
When invoking either
pop.Connection.NewTransaction
orpop.ConnectionTransaction(fn)
, I would expect to be able to provideTxOptions
.Actual Behavior
When invoking either
pop.Connection.NewTransaction
orpop.ConnectionTransaction(fn)
, I am unable to provideTxOptions
.Info
gobuffalo/buffalo:v0.17.3-slim
The text was updated successfully, but these errors were encountered: