Versions in this module Expand all Collapse all v0 v0.0.2 Sep 19, 2018 Changes in this version + var SqlPool = sync.Pool + func RecycleSql(sql *Sql) + type Connection interface + Exec func(query string, args ...interface{}) sql.Result + InitDB func(cfg map[string]config.Database) + Query func(query string, args ...interface{}) ([]map[string]interface{}, *sql.Rows) + func GetConnection() Connection + func GetConnectionByDriver(driver string) Connection + type H map[string]interface + type Join struct + type RawUpdate struct + type Sql struct + func Table(table string) *Sql + func (sql *Sql) All() ([]map[string]interface{}, error) + func (sql *Sql) Count() (int64, error) + func (sql *Sql) Exec() (int64, error) + func (sql *Sql) Find(arg interface{}) (map[string]interface{}, error) + func (sql *Sql) First() (map[string]interface{}, error) + func (sql *Sql) Insert(values H) (int64, error) + func (sql *Sql) LeftJoin(table string, fieldA string, operation string, fieldB string) *Sql + func (sql *Sql) OrderBy(filed string, order string) *Sql + func (sql *Sql) Select(fields ...string) *Sql + func (sql *Sql) Skip(offset int) *Sql + func (sql *Sql) Take(take int) *Sql + func (sql *Sql) Update(values H) (int64, error) + func (sql *Sql) UpdateRaw(raw string, args ...interface{}) *Sql + func (sql *Sql) Where(field string, operation string, arg interface{}) *Sql + func (sql *Sql) WhereIn(field string, arg []interface{}) *Sql + func (sql *Sql) WhereNotIn(field string, arg []interface{}) *Sql + func (sql *Sql) WhereRaw(raw string) *Sql + type Where struct