testdb

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	POSTGRES_IMAGE    = "postgres"
	POSTGRES_VERSION  = "16-alpine"
	POSTGRES_DB       = "testdb"
	POSTGRES_USER     = "postgres"
	POSTGRES_PASSWORD = "postgres"
)

Variables

This section is empty.

Functions

func NewPGPool

func NewPGPool(options ...OptionsFunc) (db *pgxpool.Pool, cleanup func(), err error)

func NewPostgres

func NewPostgres(options ...OptionsFunc) (db *sql.DB, cleanup func(), err error)

Types

type OptionsFunc

type OptionsFunc func(o *options)

func WithBindPort

func WithBindPort(n int) OptionsFunc

func WithDebug

func WithDebug(b bool) OptionsFunc

Jump to

Keyboard shortcuts

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