postgres

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, uri string, sc secrets.Client) (*pgx.Conn, error)

func ConnectPool

func ConnectPool(ctx context.Context, uri string, sc secrets.Client) (*pgxpool.Pool, error)

func ConnectStdlibPool

func ConnectStdlibPool(ctx context.Context, uri string, sc secrets.Client) (*sql.DB, error)

Types

type Transactor added in v1.2.2

type Transactor interface {
	BeginTx(context.Context, pgx.TxOptions) (pgx.Tx, error)
}

Transactor is a super minimal subset of a pgxpool.Pool that attempts to limit how deeply we depend on pools.

Jump to

Keyboard shortcuts

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