Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSerialization = errors.New("serialization error") ErrCommit = errors.New("commit error") ErrBeginTx = errors.New("begin tx error") )
View Source
var ErrSerializationRepeatTimesExcedeed = errors.New("serialization repeat times exceeded")
Functions ¶
func Exec ¶
func Exec( tx CommitRollbacker, exec func() error, ) error
Types ¶
type Beginner ¶
type Beginner interface {
Begin(ctx context.Context) (Tx, error)
BeginTx(ctx context.Context, opts *sql.TxOptions) (Tx, error)
}
func BeginnerWithDriver ¶
type CommitRollbacker ¶
func CommitRollbackerWithDriver ¶
func CommitRollbackerWithDriver(tx CommitRollbacker, driver Driver) CommitRollbacker
Click to show internal directories.
Click to hide internal directories.