Versions in this module Expand all Collapse all v1 v1.0.0 May 20, 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 + ImporterPath func() string + Name func() string + ParseDSN func(params ConnParams) string + QuoteIdent func(ident string) string + func GetDialectByName(name string) Dialect + type Mssql struct + func (Mssql) ImporterPath() string + func (Mssql) Name() string + func (Mssql) ParseDSN(params ConnParams) string + func (Mssql) QuoteIdent(ident string) string + type Mysql struct + func (Mysql) ImporterPath() string + func (Mysql) Name() string + func (Mysql) ParseDSN(params ConnParams) string + func (Mysql) QuoteIdent(ident string) string + type Oracle struct + func (Oracle) ImporterPath() string + func (Oracle) Name() string + func (Oracle) ParseDSN(params ConnParams) string + func (Oracle) QuoteIdent(ident string) string + type Postgres struct + func (Postgres) ImporterPath() string + func (Postgres) Name() string + func (Postgres) ParseDSN(params ConnParams) string + func (Postgres) QuoteIdent(ident string) string + type Redis struct + Values url.Values + func NewRedis(addr, opts string) (*Redis, error) + func (Redis) ImporterPath() string + func (Redis) Name() string + func (Redis) QuoteIdent(ident string) string + func (r *Redis) Connect(verbose bool) (redis.Conn, error) + func (r *Redis) ParseDSN(params ConnParams) string + func (r *Redis) ParseOptions(opts string) (err error) + type Sqlite struct + func (Sqlite) ImporterPath() string + func (Sqlite) Name() string + func (Sqlite) ParseDSN(params ConnParams) string + func (Sqlite) QuoteIdent(ident string) string + type Sqlite3 struct + func (Sqlite3) Name() string