Documentation ¶
Overview ¶
Package db provides useful functions to create mysql instance
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MySQLOptions ¶
type MySQLOptions struct { Host string Username string Password string Database string MaxIdleConnections int MaxOpenConnections int MaxConnectionLifeTime time.Duration LogLevel int }
MySQLOptions defines the options for connecting to MySQL
func (*MySQLOptions) DSN ¶
func (o *MySQLOptions) DSN() string
Click to show internal directories.
Click to hide internal directories.