tx

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

func From(ctx context.Context) *gorm.DB

func WithContext

func WithContext(parent context.Context, tx *gorm.DB) context.Context

Types

type Transactioner

type Transactioner interface {
	Transaction(ctx context.Context, f func(ctx context.Context) error, opts ...*sql.TxOptions) error
}

func NewTransactioner

func NewTransactioner(db *gorm.DB) Transactioner

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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