Make TransactionBuilder's constructor public #220
Replies: 2 comments 4 replies
-
I converted this to a discussion as this is more a feature request than a bug report. |
Beta Was this translation helpful? Give feedback.
-
My use case is that I've got my own struct implementing That's all working fine for the most common uses, except the ones that need more fine-grained control over the transaction options, like the isolation level. This is where I need a
|
Beta Was this translation helpful? Give feedback.
-
TransactionBuilder
is already generic overAsyncConnection<Backend = Pg, TransactionManager = AnsiTransactionManager>
, and I would like to take advantage of this to use it with a connnection other thanAsyncPgConnection
.In my testing, it all should work just fine if
diesel_async/src/pg/transaction_builder.rs
Line 30 in 1c36b65
Are there any reasons why the constructor shouldn't be made public?
If not, I'm happy to submit a PR to make it so.
Beta Was this translation helpful? Give feedback.
All reactions