Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DriverName for postgres drivers DriverName = "postgres" // MasterQuery returns true when not in recovery (means node is master) MasterQuery = "select not pg_is_in_recovery();" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Hosts []Host // Params are parsed as `k=v` and appended to the connection string Params map[string]string }
Config for postgreSQL drivers
func (Config) DataSourceNames ¶
DataSourceNames implements driver.Configurator
func (Config) DriverName ¶
DriverName returns the DriverName constant. Implements driver.Configurator
func (Config) MasterQuery ¶
MasterQuery returns the MasterQuery constant. Implements driver.Configurator
Click to show internal directories.
Click to hide internal directories.