db

package
v0.0.0-...-990d579 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConn

func GetConn(ctx context.Context) (*sql.Conn, error)

Types

type Tx

type Tx struct {
	*sql.Tx
	// contains filtered or unexported fields
}

func Begin

func Begin(ctx context.Context, conn *sql.Conn) (*Tx, error)

func GetTxConn

func GetTxConn(ctx context.Context) (*sql.Conn, *Tx, error)

func (*Tx) AutoRollback

func (t *Tx) AutoRollback() error

func (*Tx) Commit

func (t *Tx) Commit() error

Jump to

Keyboard shortcuts

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