Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultMaxConns = 100 DefaultMaxIdleConns = 10 )
Default values for Mysql.
Variables ¶
This section is empty.
Functions ¶
func CloseTheDB ¶ added in v0.0.14
Types ¶
type DB ¶
type DB struct { //DSN string Conf DBConfig // contains filtered or unexported fields }
func (*DB) ApplyOptions ¶
type DBOption ¶
type DBOption interface {
// contains filtered or unexported methods
}
A DBOption sets options.
type DBOptionFunc ¶
type DBOptionFunc func(*DB)
DBOptionFunc wraps a function that modifies DB into an implementation of the DBOption interface.
type EmptyDBOption ¶
type EmptyDBOption struct{}
EmptyDBUrlOption does not alter the DBuration. It can be embedded in another structure to build custom options.
This API is EXPERIMENTAL.
Click to show internal directories.
Click to hide internal directories.