Versions in this module Expand all Collapse all v0 v0.2.0 Oct 31, 2026 Changes in this version + const Database + const User + func CreateTemplate(ctx context.Context, dir string, cfg Config, ...) error + func DefaultCacheDir() (string, error) + type Config struct + CacheDir string + DataDir string + Logger *slog.Logger + Settings map[string]string + StderrFile string + StdoutFile string + Template string + type PGlite struct + func New(cfg Config) (_ *PGlite, err error) + func (pg *PGlite) Close() error + func (pg *PGlite) ConnString() string + func (pg *PGlite) DB() *sql.DB + func (pg *PGlite) DataDir() string + func (pg *PGlite) Err() error + func (pg *PGlite) Pool(ctx context.Context) (*pgxpool.Pool, error) + type PgError struct + Code string + Detail string + Message string + Severity string + func (e *PgError) Error() string