Documentation
¶
Index ¶
- Constants
- func DumpCreateDBAndACL(logger *logger.LevelLog, db *Pg, dbname string, pgDumpVersion int, force bool) (_ string, err error)
- func DumpDBConfig(logger *logger.LevelLog, db *Pg, dbname string, pgDumpVersion int) (_ string, err error)
- func ExtractFileFromSettings(logger *logger.LevelLog, db *Pg, name string) (_ string, err error)
- func ListDatabases(logger *logger.LevelLog, db *Pg, withTemplates bool, excludedDbs []string, ...) ([]string, error)
- func PauseReplicationWithTimeout(logger *logger.LevelLog, db *Pg, timeOut int) error
- func ResumeReplication(logger *logger.LevelLog, db *Pg) error
- func ShowSettings(logger *logger.LevelLog, db *Pg) (_ string, err error)
- type ConnInfo
- type Pg
- type PgPrivError
- type PgVersionError
Constants ¶
View Source
const ( CI_KEYVAL int = iota CI_URI )
Variables ¶
This section is empty.
Functions ¶
func DumpCreateDBAndACL ¶
func DumpCreateDBAndACL( logger *logger.LevelLog, db *Pg, dbname string, pgDumpVersion int, force bool, ) (_ string, err error)
pg_dumpacl stuff
func DumpDBConfig ¶
func ExtractFileFromSettings ¶
func ListDatabases ¶
Types ¶
type ConnInfo ¶
func PrepareConnInfo ¶
PrepareConnInfo returns a connexion string computed from the input values. When the dbname is already a connection string or a postgresql:// URI, it only add the application_name keyword if not set.
func (*ConnInfo) MakeEnv ¶
MakeEnv return the conninfo as a list of "key=value" environment variables that the libpq understands, as stated in the documentation of PostgreSQL 14
type PgPrivError ¶
type PgPrivError struct {
// contains filtered or unexported fields
}
func (*PgPrivError) Error ¶
func (e *PgPrivError) Error() string
type PgVersionError ¶
type PgVersionError struct {
// contains filtered or unexported fields
}
func (*PgVersionError) Error ¶
func (e *PgVersionError) Error() string
Click to show internal directories.
Click to hide internal directories.