package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: May 11, 2018
License: MIT
Opens a new window with license information.
Imports: 11
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
NoTLS bool
}
Config is used to pass connection settings to NewDatabase
NullTime is wrapper for mysql.NullTime
Implements json.Marshaler and sql.Scanner
Scan implements the Scanner interface for NullTime
Source Files
¶
Click to show internal directories.
Click to hide internal directories.