Versions in this module Expand all Collapse all v0 v0.0.1 Mar 14, 2019 Changes in this version + func New(engine Engine, options DatabaseConnectionOpts) (*goqu.Database, error) + func NewMySQLHandler(options DatabaseConnectionOpts) (*sql.DB, error) + func NewPostgresHandler(options DatabaseConnectionOpts) (*sql.DB, error) + type DatabaseChecker struct + func NewChecker(db *goqu.Database) *DatabaseChecker + func (d *DatabaseChecker) Diagnose() diagnose.ComponentReport + type DatabaseConnectionOpts struct + ConnMaxLifetime int + Database string + Host string + MaxConnections int + MaxIdleConnections int + Params map[string]string + Password string + Port string + Timeout int + User string + func NewDatabaseConnectionOpts(host, database, user, password, port string, ...) *DatabaseConnectionOpts + func (opts *DatabaseConnectionOpts) GetConnString() string + func (opts *DatabaseConnectionOpts) GetParams() string + type Engine string + const MySQL + const Postgres + func (en Engine) String() string + type MySQLConnectionOpts struct + Protocol string + func NewMySQLConnOptions(dbConnOpts DatabaseConnectionOpts) *MySQLConnectionOpts + func (opts *MySQLConnectionOpts) GetConnString() string + type PostgresConnOptions struct + SSLEnabled bool + func NewPostgresConnOptions(dbConnectionOpts DatabaseConnectionOpts) *PostgresConnOptions + func (opts *PostgresConnOptions) GetConnString() string