internal

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnection

func GetConnection(ctx context.Context, dbnames ...string) (*pgx.Conn, error)

GetConnection returns a connection to the PostgreSQL database.

func GetPool added in v0.2.0

func GetPool(ctx context.Context, dbnames ...string) (*pgxpool.Pool, error)

func MustGetConnectionWithCleanup

func MustGetConnectionWithCleanup(t testing.TB, dbnames ...string) *pgx.Conn

func SetupTestDatabase

func SetupTestDatabase(dbname string) error

SetupTestDatabase ensures the database schema is set up for tests.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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