postgres

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultImage = "postgres:17-alpine"

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct{ *postgres.PostgresContainer }

func Run

func Run(ctx context.Context, image string) (*Container, error)

func (*Container) ConnectionConfig

func (c *Container) ConnectionConfig(ctx context.Context, args ...string) (*pgxpool.Config, func(ctx context.Context, config *pgxpool.Config) (*pgxpool.Pool, error), error)

ConnectionConfig creates a new pgxpool.Config.

func (*Container) ConnectionPool

func (c *Container) ConnectionPool(ctx context.Context, args ...string) (*pgxpool.Pool, error)

ConnectionPool creates a new pgxpool.Pool.

type Pool

type Pool = pgxpool.Pool

Jump to

Keyboard shortcuts

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