feat: support using session to execute statements in transaction (#3252)
This commit is contained in:
14
core/stores/sqlx/errors.go
Normal file
14
core/stores/sqlx/errors.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package sqlx
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
)
|
||||
|
||||
var (
|
||||
// ErrNotFound is an alias of sql.ErrNoRows
|
||||
ErrNotFound = sql.ErrNoRows
|
||||
|
||||
errCantNestTx = errors.New("cannot nest transactions")
|
||||
errNoRawDBFromTx = errors.New("cannot get raw db from transaction")
|
||||
)
|
||||
Reference in New Issue
Block a user