Feature Request: session.Begin() with sql.TxOptions #1856

Open
opened 3 months ago by arucil · 0 comments
arucil commented 3 months ago

In the current version, there is no way to provide a sql.TxOptions when invoking session.Begin(), one must use DB.BeginTx() instead. However DB does not provide many convenience methods such as Where, Select, etc. So a session.Begin()-alike method with a parameter of sql.TxOptions would help a lot.

In the current version, there is no way to provide a `sql.TxOptions` when invoking `session.Begin()`, one must use `DB.BeginTx()` instead. However `DB` does not provide many convenience methods such as `Where`, `Select`, etc. So a `session.Begin()`-alike method with a parameter of `sql.TxOptions` would help a lot.
lunny added the
kind/enhancement
label 3 months ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.