sqlmanager

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithTxState

func ContextWithTxState(ctx context.Context, state *TxState) context.Context

func CurrentSQLTx

func CurrentSQLTx(ctx context.Context) *sql.Tx

Types

type Manager

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

func NewManager

func NewManager(db *sql.DB) (*Manager, error)

func (*Manager) RawDB

func (m *Manager) RawDB() *sql.DB

func (*Manager) Session

func (m *Manager) Session(ctx context.Context) contracts.Session

type TxState

type TxState struct {
	SqlTx *sql.Tx
}

func TxStateFrom

func TxStateFrom(ctx context.Context) *TxState

Jump to

Keyboard shortcuts

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