testpostgres

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

type Option

type Option func(*Config)

func WithHost

func WithHost(host string) Option

func WithLogger added in v0.0.15

func WithLogger(l *testlogger.Logger) Option

func WithMigrations added in v0.0.14

func WithMigrations(src ...dbmigrator.Source) Option

func WithPassword

func WithPassword(password string) Option

func WithPort

func WithPort(port int) Option

func WithUser

func WithUser(user string) Option

type Postgres

type Postgres struct {
	// contains filtered or unexported fields
}

func New

func New(t *testing.T, opts ...Option) *Postgres

func (*Postgres) DB

func (p *Postgres) DB() *pgxpool.Pool

func (*Postgres) DSN

func (p *Postgres) DSN() string

Jump to

Keyboard shortcuts

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