Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitFunc ¶ added in v0.0.7
type CommitFunc func() error
type RollbackFunc ¶ added in v0.0.7
type RollbackFunc func() error
type TransactionDb ¶
func NewTransactionDb ¶
func NewTransactionDb(db *gorm.DB) *TransactionDb
NewTransactionDb create a wrapper which implements uow.Txn
func (*TransactionDb) Commit ¶
func (t *TransactionDb) Commit() error
func (*TransactionDb) Rollback ¶
func (t *TransactionDb) Rollback() error
Click to show internal directories.
Click to hide internal directories.