Versions in this module Expand all Collapse all v1 v1.0.0 May 13, 2026 Changes in this version + func Container(ctx context.Context, opts ...Option) (*postgres.PostgresContainer, error) + func MustNew(ctx context.Context) (*sql.DB, func()) + func MustNewWithOptions(ctx context.Context, opts ...Option) (*sql.DB, func()) + func New(ctx context.Context) (*sql.DB, func(), error) + func NewWithConfig(ctx context.Context, cfg *config.PostgresConfig) (*sql.DB, func(), error) + func NewWithOptions(ctx context.Context, opts ...Option) (*sql.DB, func(), error) + type Option func(*config.PostgresConfig) + func WithDatabase(database string) Option + func WithHealthCheckInterval(interval time.Duration) Option + func WithHealthCheckRetry(retries int) Option + func WithHealthCheckTimeout(timeout time.Duration) Option + func WithImage(image string) Option + func WithPassword(password string) Option + func WithPoolSettings(maxOpen, maxIdle int, maxLifetime time.Duration) Option + func WithUsername(username string) Option