pg

package
v0.0.0-...-0213d94 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TxKey key = "tx"
)

Variables

View Source
var ExecError = errors.New("error db execution")
View Source
var NotFound = errors.New("error not found")
View Source
var QueryError = errors.New("error db query")
View Source
var ScanError = errors.New("error scanning")

Functions

func MakeContextTx

func MakeContextTx(ctx context.Context, tx pgx.Tx) context.Context

func New

func New(ctx context.Context, cfg *pgxpool.Config) (db.Client, error)

func NewDB

func NewDB(dbc *pgxpool.Pool) db.DB

Types

This section is empty.

Jump to

Keyboard shortcuts

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