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 ¶
Types ¶
type Connection ¶
type Connection = pgxpool.Connection
Connection aliases the pgxpool connection 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 ¶
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.
Click to show internal directories.
Click to hide internal directories.