Versions in this module Expand all Collapse all v0 v0.2.1 Dec 30, 2022 v0.2.0 Dec 29, 2022 v0.1.0 Dec 9, 2022 Changes in this version + const DefaultVersion + type Postgres struct + DebugLevel int + Dir string + Port int + Version string + func (p *Postgres) CreateDB(ctx context.Context, logf func(string, ...any), name, schema string) (db *sql.DB, dsn string, cleanup func(), err error) + func (p *Postgres) DSN(dbname string) string + func (p *Postgres) Flush() + func (p *Postgres) Pid() int + func (p *Postgres) Shutdown() error + func (p *Postgres) ShutdownAlone() error + func (p *Postgres) Start(ctx context.Context, logf func(string, ...any)) error