Versions in this module Expand all Collapse all v1 v1.0.0 Sep 5, 2019 Changes in this version + type Config struct + Connect string + Driver string + type DB struct + func New(conf *Config) *DB + func (db *DB) Close() + func (db *DB) Commit() + func (db *DB) Exec(query string, args ...interface{}) + func (db *DB) Rollback() + func (db *DB) Select(query string, args []interface{}, fn ROW_CALLBACK) + func (db *DB) SelectFloat(query string, args ...interface{}) (float64, bool) + func (db *DB) SelectInt(query string, args ...interface{}) (int64, bool) + func (db *DB) SelectRow(query string, args []interface{}, res ...interface{}) bool + func (db *DB) SelectString(query string, args ...interface{}) (string, bool) + type ROW_CALLBACK func(r Row) error + type Row = *sql.Rows