transactor

package
v0.0.0-...-41b38f0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBTransactor

type DBTransactor struct {
	// contains filtered or unexported fields
}

func NewDBTransactor

func NewDBTransactor(db *sql.DB) *DBTransactor

func (*DBTransactor) Begin

func (rtx *DBTransactor) Begin(ctx context.Context) (context.Context, error)

func (*DBTransactor) Commit

func (rtx *DBTransactor) Commit(ctx context.Context) error

func (*DBTransactor) GetTransactionFromCtx

func (rtx *DBTransactor) GetTransactionFromCtx(ctx context.Context) (*sql.Tx, bool)

func (*DBTransactor) Rollback

func (rtx *DBTransactor) Rollback(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL