Versions in this module Expand all Collapse all v0 v0.1.0 May 22, 2019 Changes in this version + func Init(user, passwd, host, dbName string, port int) error + func Query(sql string, args ...interface{}) (record.ActiveRecordList, error) + func QueryFirst(sql string, args ...interface{}) (*record.ActiveRecord, error) + func Update(sql string, args ...interface{}) (int64, error) + type DB interface + Query func(sql string, args ...interface{}) (record.ActiveRecordList, error) + QueryFirst func(sql string, args ...interface{}) (*record.ActiveRecord, error) + Update func(sql string, args ...interface{}) (int64, error) + func GetDB() (DB, error)