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

Open
opened 2021-01-27 02:50:55 +00:00 by arucil · 0 comments

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 2021-01-27 04:19:31 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/xorm#1856
No description provided.