Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Host string `yaml:"host"` Port int `yaml:"port"` Username string `yaml:"username"` Database string `yaml:"database"` PasswordEnvName string `yaml:"passwordEnvName"` SSL SSLConfig `yaml:"ssl"` // CreateDatabase specifies whether to create the database if it does not exist. CreateDatabase bool `yaml:"createDatabase"` // OriginalDatabase specifies the original database to connect to before creating the database. // If empty, use "template1". OriginalDatabase string `yaml:"originalDatabase"` }
Config specifies the configurations to connect to the database.
Click to show internal directories.
Click to hide internal directories.