Versions in this module Expand all Collapse all v1 v1.0.14 Nov 7, 2025 v1.0.13 Nov 7, 2025 v1.0.12 Nov 6, 2025 v1.0.11 Nov 6, 2025 v1.0.10 Nov 5, 2025 v1.0.9 Nov 5, 2025 v1.0.8 Nov 5, 2025 v1.0.7 Nov 5, 2025 v1.0.6 Nov 5, 2025 v1.0.5 Nov 4, 2025 v1.0.4 Nov 4, 2025 Changes in this version + func DatabaseAlreadyExists(dataDir string) bool + func ValidateMinimumEnv(env *DockerEnv, databaseExists bool) error + func WrappedError(err error) exec.WrapperFunc + type Checkpoint struct + BytesWritten int64 + Last time.Time + RedoLSN string + type DataDirFileInfo struct + MD5 string + Modified time.Time + Name string + Path string + Size int64 + func (f *DataDirFileInfo) GetChildren() []api.TreeNode + func (f *DataDirFileInfo) Pretty() api.Text + type DataDirTree struct + Files []DataDirFileInfo + Label string + Path string + func (d *DataDirTree) GetChildren() []api.TreeNode + func (d *DataDirTree) Pretty() api.Text + type DockerEnv struct + Database string + HostAuthMethod string + InitDBArgs string + Password utils.SensitiveString + User string + WALDir string + func SetupDockerEnv() (*DockerEnv, error) + type InitDBOptions struct + AuthMethod string + InitDBArgs string + Password utils.SensitiveString + Username string + WALDir string type Postgres + Database string + DryRun bool + Encoding string + Host string + Locale string + Password utils.SensitiveString + Port int + Username string + func NewRemotePostgres(host string, port int, username, password, database string) *Postgres + func (p *Postgres) CreateDatabase(name string) error + func (p *Postgres) GetConnection() (*sql.DB, error) + func (p *Postgres) GetConnectionString() string + func (p *Postgres) GetControlData() (*config.ControlData, error) + func (p *Postgres) GetCurrentConf() (config.ConfSettings, error) + func (p *Postgres) GetFullVersion() string + func (p *Postgres) Info() (*PostgresInfo, error) + func (p *Postgres) InitDBWithOptions(opts InitDBOptions) error + func (p *Postgres) IsRemote() bool + func (p *Postgres) Pg_ctl(args ...string) *exec.Process + func (p *Postgres) Ping() error + func (p *Postgres) ProcessInitScripts(initDir string) error + func (p *Postgres) Psql(args ...string) *exec.Process + func (p *Postgres) SetupPgHBA(method string) error + func (p *Postgres) StartTempServer(opts TempServerOptions) (*exec.Process, error) + func (p *Postgres) StopTempServer() error + func (p *Postgres) ValidateConfig(config []byte) error + func (p *Postgres) WithConnection(fn func(db *sql.DB) error) error + func (p *Postgres) WithoutAuth() *Postgres + type PostgresInfo struct + BinDir string + Checkpoint Checkpoint + ClusterState string + DBSize int64 + DataDir string + DataDirectory string + DataSize int64 + Files map[string]config.Conf + FullVersion string + ListenAddress string + MergedConf config.Conf + Port int + Running bool + RuntimeConf config.Conf + System sysinfo.SystemInfo + SystemIdentifier string + VersionInfo string + VersionNumber int + WalInfo WalInfo + type TempServerOptions struct + Port int + UnixSocketOnly bool + type WalInfo struct + ArchivedCount int + ArchivedSize int64 + LSN string + LastFile string + Size int64 v1.0.3 Oct 27, 2025 v1.0.2 Oct 27, 2025 v1.0.1 Oct 27, 2025 Changes in this version + type ExtensionInfo = pkg.ExtensionInfo + type ExtensionStatus struct + Available bool + Error string + Installed bool + Name string + Required bool + SQLName string + Version string + type HealthServer struct + ConfigDir string + DBType sysinfo.DBType + MaxConn int + PgBouncerConfig *pkg.PgBouncerConf + Port int + PostgRESTConfig *pkg.PostgrestConf + PostgresConfig *pkg.PostgresConf + SystemInfo *sysinfo.SystemInfo + TunedParams *pgtune.TunedParameters + WalgConfig *pkg.WalgConf + func NewHealthServer(port int, configDir string) *HealthServer + func (s *HealthServer) ConfigFromFile(maxConn int, dbType sysinfo.DBType) error + func (s *HealthServer) LoadServiceConfigs() + func (s *HealthServer) SaveConfigsToDir(dir string) error + func (s *HealthServer) SetConfiguration(maxConn int, dbType sysinfo.DBType, tunedParams *pgtune.TunedParameters) + func (s *HealthServer) Start() error + func (s *HealthServer) Stop(ctx context.Context) error + type PGVersion = pkg.PgVersion + type Postgres struct + BinDir string + Config *pkg.PostgresConf + DataDir string + func NewPostgres(config *pkg.PostgresConf, dataDir string) *Postgres + func (p *Postgres) Backup() error + func (p *Postgres) DescribeConfig() ([]schemas.Param, error) + func (p *Postgres) DetectVersion() (int, error) + func (p *Postgres) Exists() bool + func (p *Postgres) GetStderr() string + func (p *Postgres) GetStdout() string + func (p *Postgres) GetSupportedExtensions() []string + func (p *Postgres) GetVersion() PGVersion + func (p *Postgres) Health() error + func (p *Postgres) InitDB() error + func (p *Postgres) InstallExtensions(extensions []string) error + func (p *Postgres) IsRunning() bool + func (p *Postgres) ListAvailableExtensions() ([]ExtensionInfo, error) + func (p *Postgres) ListInstalledExtensions() ([]ExtensionInfo, error) + func (p *Postgres) ResetPassword(newPassword utils.SensitiveString) error + func (p *Postgres) SQL(sqlQuery string) ([]map[string]interface{}, error) + func (p *Postgres) Start() error + func (p *Postgres) Stop() error + func (p *Postgres) Upgrade(targetVersion int) error + func (p *Postgres) Validate(config []byte) error + type ServiceStatus struct + Details string + Enabled bool + Name string + Port int + PortOpen bool + RestartCount int + Status string + Uptime string + type ValidationError = pkg.ValidationError