gorm

package
Version: v0.0.0-...-b003220 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2021 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransactionDb

type TransactionDb struct {
	*gorm.DB
}

func NewTransactionDb

func NewTransactionDb(db *gorm.DB) *TransactionDb

func (*TransactionDb) Begin

func (t *TransactionDb) Begin(ctx context.Context, opt ...*sql.TxOptions) (db uow.Txn, err error)

func (*TransactionDb) Commit

func (t *TransactionDb) Commit() error

func (*TransactionDb) Rollback

func (t *TransactionDb) Rollback() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL