transaction

package
v0.0.0-...-afa0789 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransactionManager

type TransactionManager interface {
	AcquireTx(ctx context.Context) *gorm.DB
	CommitOrRollback(ctx context.Context, tx *gorm.DB, isRollback bool) error
}

func New

func New(db *gorm.DB) TransactionManager

Jump to

Keyboard shortcuts

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