pg

package
v0.0.0-...-d867389 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TxKey is a key for transaction.
	TxKey key = "tx"
)

Variables

This section is empty.

Functions

func MakeContextTx

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

MakeContextTx makes a new context with transaction.

func NewClient

func NewClient(ctx context.Context, dsn string) (db.Client, error)

NewClient creates a new database client.

func NewPool

func NewPool(dbc *pgxpool.Pool) *pg

NewPool creates a new database client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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