package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Apr 19, 2018
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
New will return new mysql connection and will start ping goroutine to monitor connection state
On ctx.Done() db object will be automatically closed
type Config struct {
Secret, Username, Host, Database string
}
Config is used to pass connection settings to NewDatabase
NullTime is wrapper for mysql.NullTime
Implements json.Marshaler and sql.Scanner
Source Files
¶
Click to show internal directories.
Click to hide internal directories.