transaction

package module
v0.0.0-...-975b930 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func New

func New(db *gorm.DB) *DB

func (*DB) GetDB

func (s *DB) GetDB(ctx context.Context) *gorm.DB

func (*DB) WithTransaction

func (s *DB) WithTransaction(ctx context.Context, f func(ctx context.Context) error) error

Jump to

Keyboard shortcuts

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