pgxpool

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package pgxpool provides convenience wiring around the pgxpool adapter.

The package aliases adapter types and returns ports.DatabasePool from New. Prefer direct adapter imports when you need a smaller dependency surface or adapter-specific options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(dsn string) (ports.DatabasePool, error)

New constructs a pgx-backed database pool adapter.

Types

type Adapter

type Adapter = pgxpool.Adapter

Adapter aliases the pgxpool adapter type.

type Connection

type Connection = pgxpool.Connection

Connection aliases the pgxpool connection wrapper type.

type Result

type Result = pgxpool.Result

Result aliases the pgxpool result wrapper type.

type Row

type Row = pgxpool.Row

Row aliases the pgxpool row wrapper type.

type Rows

type Rows = pgxpool.Rows

Rows aliases the pgxpool rows wrapper type.

type Snapshot added in v2.1.0

type Snapshot = ports.DatabasePoolSnapshot

Snapshot aliases the preferred plain-value pool stats type for new code.

type Stats

type Stats = pgxpool.Stats

Stats aliases the legacy pgxpool stats wrapper type. New code should prefer Adapter.StatSnapshot and ports.DatabasePoolSnapshot.

type Transaction

type Transaction = pgxpool.Transaction

Transaction aliases the pgxpool transaction wrapper type.

Jump to

Keyboard shortcuts

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