Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpTables ¶
DumpTables prints the specified tables to standard output stream
func GetConnection ¶
GetConnection returns a SQL database connection
func GetPostgresConnection ¶
func GetPostgresConnection(config *PostgresConfig) (*sql.DB, error)
GetPostgresConnection returns a PostgreSQL database connection
Types ¶
type Config ¶
type Config struct { Server string `yaml:"server" json:"server"` Port int `yaml:"port" json:"port"` Username string `yaml:"username" json:"username"` Password string `yaml:"password" json:"password"` Name string `yaml:"name" json:"name"` }
Config struct
type PostgresConfig ¶
type PostgresConfig struct { Config `yaml:"config" json:"config"` UseSSL bool `yaml:"use_ssl" json:"use_ssl"` }
PostgresConfig contains fields for PostgreSQL configuration
Click to show internal directories.
Click to hide internal directories.