There was an error while loading. Please reload this page.
1 parent aa2bf61 commit 09170eaCopy full SHA for 09170ea
1 file changed
orm/db.go
@@ -288,6 +288,10 @@ func (tx *DBTx) AfterCommit(afterCommit func(err error)) {
288
tx.afterCommit = afterCommit
289
}
290
291
+func (tx *DBTx) GetStdTx() *sql.Tx {
292
+ return tx.tx
293
+}
294
+
295
func TransactFunc(db *DBStore, txFunc func(*DBTx) error) (err error) {
296
tx, err := db.BeginTx()
297
if err != nil {
0 commit comments