Versions in this module Expand all Collapse all v0 v0.2.0 Apr 15, 2020 Changes in this version + const MSSQL_DEFAULT_PORT + const MYSQL_DEFAULT_PORT + const ORACLE_DEFAULT_PORT + const PGSQL_DEFAULT_PORT + const REDIS_DEFAULT_PORT + var ConcatWith = utils.ConcatWith + var WrapWith = utils.WrapWith + type ConnParams struct + Database string + Host string + Options map[string]interface{} + Password string + Port int + Username string + func (p ConnParams) GetAddr(defaultHost string, defaultPort uint16) string + func (p ConnParams) StrPort(defaultPort uint16) string + type Dialect interface + GetDSN func(params ConnParams) string + Name func() string + QuoteIdent func(ident string) string + func GetDialectByName(name string) Dialect + type Mssql struct + func (Mssql) GetDSN(params ConnParams) string + func (Mssql) Name() string + func (Mssql) QuoteIdent(ident string) string + type Mysql struct + func (Mysql) GetDSN(params ConnParams) string + func (Mysql) Name() string + func (Mysql) QuoteIdent(ident string) string + type Oracle struct + func (Oracle) GetDSN(params ConnParams) string + func (Oracle) Name() string + func (Oracle) QuoteIdent(ident string) string + type Postgres struct + func (Postgres) GetDSN(params ConnParams) string + func (Postgres) Name() string + func (Postgres) QuoteIdent(ident string) string + type Redis struct + Options []redis.DialOption + func (Redis) Name() string + func (Redis) QuoteIdent(ident string) string + func (r *Redis) Connect(params ConnParams) (redis.Conn, error) + func (r *Redis) GetDSN(params ConnParams) string + type Sqlite struct + func (Sqlite) GetDSN(params ConnParams) string + func (Sqlite) Name() string + func (Sqlite) QuoteIdent(ident string) string