Documentation ¶
Index ¶
- Variables
- type Instance
- func (*Instance) Avg(table, column string, conditions map[string]string) (map[string]float64, error)
- func (*Instance) Connect(host, port, username, password string)
- func (*Instance) Count(table, column string, conditions map[string]string) (map[string]string, error)
- func (*Instance) Delete(table string, conditions map[string]string) (string, error)
- func (*Instance) Disconnect()
- func (*Instance) Find(table string, columns []string, conditions map[string]string) (map[int]map[string]string, error)
- func (*Instance) FindOne(table string, columns []string, conditions map[string]string) (map[int]map[string]string, error)
- func (*Instance) Insert(table string, intfc interface{}) (string, error)
- func (*Instance) Max(table, column string, conditions map[string]string) (map[string]float64, error)
- func (*Instance) Min(table, column string, conditions map[string]string) (map[string]float64, error)
- func (*Instance) Raw(query string) (*sql.Rows, error)
- func (*Instance) Sum(table, column string, conditions map[string]string) (map[string]string, error)
- func (*Instance) Update(table string, conditions map[string]string, intfc interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Db *sql.DB
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.