Versions in this module Expand all Collapse all v0 v0.1.0 Nov 27, 2026 Changes in this version + const Clone + const Default + const FileCopy + const WALLog + func AllowConnections(ctx context.Context, db DB, name string, allow bool) error + func CloneAvailable(ctx context.Context, db DB) (bool, error) + func Comment(ctx context.Context, db DB, name string, m marker.Marker) error + func CopyACL(ctx context.Context, db DB, source Database, target, owner string) (warnings []string, revokeFailed bool) + func CopySettings(ctx context.Context, db DB, source Database, target string) []string + func CreateCopy(ctx context.Context, db DB, name, template, strategy string) (string, error) + func DatabaseSize(ctx context.Context, db DB, oid uint32) (int64, error) + func Exec(ctx context.Context, db DB, operation, sql string, args ...any) error + func Identifier(name string) string + func Rename(ctx context.Context, db DB, name, target string) error + func SelectStrategy(version int, configured string) (string, error) + func SessionCount(ctx context.Context, db DB, name string) (int, error) + func SetComment(ctx context.Context, db DB, name string, comment *string) error + func State(err error) string + func Terminate(ctx context.Context, db DB, name string) error + type DB interface + Exec func(context.Context, string, ...any) (pgconn.CommandTag, error) + Query func(context.Context, string, ...any) (pgx.Rows, error) + QueryRow func(context.Context, string, ...any) pgx.Row + type Database struct + AllowConnections bool + Comment *string + HasACL bool + Marker marker.Marker + Name string + OID uint32 + Owner string + func Databases(ctx context.Context, db DB) ([]Database, error) + func Lookup(ctx context.Context, db DB, name string) (Database, bool, error) + type Server struct + CanCreateDB bool + IsSuperuser bool + Maintenance string + Role string + Version string + VersionNum int + func ServerInfo(ctx context.Context, db DB) (Server, error)