Documentation
¶
Index ¶
- Constants
- 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
- type Database
- type Server
Constants ¶
View Source
const ( Clone = "file_copy_clone" FileCopy = "file_copy" WALLog = "wal_log" Default = "default" )
Variables ¶
This section is empty.
Functions ¶
func AllowConnections ¶
func CloneAvailable ¶
CloneAvailable reports whether the server accepts clone as a file_copy_method.
func CopySettings ¶
func CreateCopy ¶
func Identifier ¶
Types ¶
type Database ¶
Click to show internal directories.
Click to hide internal directories.