Documentation ¶ Index ¶ func ParamsToConfig(host, user, password string, port int) *mysql.Config type DB func Connect(config *mysql.Config) (*DB, error) func (db *DB) GetSingleResult(config *mysql.Config, query string, result interface{}) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ParamsToConfig ¶ func ParamsToConfig(host, user, password string, port int) *mysql.Config Types ¶ type DB ¶ type DB struct { *sql.DB } func Connect ¶ func Connect(config *mysql.Config) (*DB, error) func (*DB) GetSingleResult ¶ func (db *DB) GetSingleResult(config *mysql.Config, query string, result interface{}) error Source Files ¶ View all Source files importing.go Click to show internal directories. Click to hide internal directories.