db

package
v0.0.0-...-0dc46f9 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: MIT Imports: 6 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