Documentation
¶
Index ¶
- Variables
- func CreateTransaction(tx *sql.Tx, gtid string, branch int, state string) error
- func SetDbSchema(schema string)
- func UpdateTransactionState(tx *sql.Tx, gtid string, branch int, state string) error
- func UpdateTransactionStateOrm(tx *gorm.DB, gtid string, branch int, state string) error
- type RmTransaction
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTxnCompleted = errors.New("transaction is already aborted or committed") ErrTxnAborted = errors.New("transaction is already aborted") ErrTxnCommitted = errors.New("transaction is already committed") ErrTxnNotPrepared = errors.New("transaction is not prepared") ErrTxnInvalidState = errors.New("invalid state") ErrNotExist = errors.New("not exist") )
Functions ¶
func CreateTransaction ¶
func SetDbSchema ¶
func SetDbSchema(schema string)
SetDbSchema set database schema, only useful for postgreSQL
func UpdateTransactionState ¶
Types ¶
type RmTransaction ¶
RmTransaction
func FindTransaction ¶
func FindTransactionOrm ¶
func (*RmTransaction) TableName ¶
func (*RmTransaction) TableName() string
Click to show internal directories.
Click to hide internal directories.