Versions in this module Expand all Collapse all v1 v1.1.0 Dec 29, 2021 v1.0.0 Sep 11, 2020 Changes in this version + const DefaultPgConfTemplate + func NullLogFunction(format string, a ...interface{}) + func PostgresInstalled(path string) error + type BriefPG struct + func New(options ...Option) (*BriefPG, error) + func (bp *BriefPG) CreateDB(ctx context.Context, dbName, createArgs string) (string, error) + func (bp *BriefPG) DBUri(dbName string) string + func (bp *BriefPG) DbDir() string + func (bp *BriefPG) DumpDB(ctx context.Context, dbName string, w io.Writer) error + func (bp *BriefPG) Fini(ctx context.Context) error + func (bp *BriefPG) MustFini(ctx context.Context) + func (bp *BriefPG) PgVer() string + func (bp *BriefPG) SetOption(o Option) error + func (bp *BriefPG) Start(ctx context.Context) error + type LogFunction func(string, ...interface{}) + type Option interface + func OptLogFunc(logf LogFunction) Option + func OptPostgresEncoding(enc string) Option + func OptPostgresPath(dir string) Option + func OptTmpDir(dir string) Option