pg

package
v0.0.0-...-5f682be Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TxKey ключ контекста для определения выполнения транзакции.
	TxKey key = "tx"
)

Variables

This section is empty.

Functions

func MakeContextTx

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

MakeContextTx возвращает контекст для определения выполнения транзакции.

func New

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

New возвращает нового клиента.

func NewDB

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

NewDB возвращает реализацию коннекта к бд.

Types

This section is empty.

Jump to

Keyboard shortcuts

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