db

package
v0.0.0-...-e4d1bf4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PingInterval = 3 * time.Second
)

Variables

This section is empty.

Functions

func GetTransaction

func GetTransaction(ctx context.Context) pgx.Tx

func NewPostgreSQLPool

func NewPostgreSQLPool(ctx context.Context) (*pgxpool.Pool, error)

func WaitFor

func WaitFor(ctx context.Context, pgPool *pgxpool.Pool) error

func WithTransaction

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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