 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func RecycleSql(sql *Sql)
- type Connection
- type H
- type Join
- type RawUpdate
- type 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
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RecycleSql ¶
func RecycleSql(sql *Sql)
Types ¶
type Connection ¶
type Connection interface {
	Query(query string, args ...interface{}) ([]map[string]interface{}, *sql.Rows)
	Exec(query string, args ...interface{}) sql.Result
	InitDB(cfg map[string]config.Database)
}
    func GetConnection ¶
func GetConnection() Connection
func GetConnectionByDriver ¶
func GetConnectionByDriver(driver string) Connection
 Click to show internal directories. 
   Click to hide internal directories.