SQLEX is extensions for database/sql and jmoiron/sqlx.
sqlex.Transact(db, func(tx *sql.Tx) error {
return nil
})
sqlex.TransactContext(ctx, txOpts, db, func(tx *sql.Tx) error {
return nil
})
sqlex.Transactx(db, func(tx *sqlx.Tx) error {
return nil
})
sqlex.TransactContext(ctx, txOpts, db, func(tx *sqlx.Tx) error {
return nil
})