Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MysqlDSN ¶
type MysqlDSN struct { Dsn string Type string //deprecated Username string Password string Protocol string Address string Database string Params map[string]string }
func NewDefaultMysqlDsn ¶
func NewDefaultMysqlDsn(ops ...MysqlDsnOptionFunc) *MysqlDSN
func ParseMysqlDSN ¶
Turns a MysqlDSN string into a parsed MysqlDSN struct.
type MysqlDsnOptionFunc ¶
type MysqlDsnOptionFunc func(dsn *MysqlDSN)
func WithAddress ¶
func WithAddress(addr string) MysqlDsnOptionFunc
func WithAuth ¶
func WithAuth(u string, pswd string) MysqlDsnOptionFunc
func WithDatabase ¶
func WithDatabase(dbname string) MysqlDsnOptionFunc
Click to show internal directories.
Click to hide internal directories.