transaction

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *sqlx.DB) session.DBWrapper[Executor]

Types

type DB

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

func (*DB) ConvertTx

func (s *DB) ConvertTx(ctx context.Context, tx *sql.Tx) Executor

func (*DB) GetDB

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

type Executor

type Executor interface {
	sqlx.Ext
	sqlx.ExtContext
	sqlx.Preparer
	sqlx.PreparerContext
}

Jump to

Keyboard shortcuts

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