Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DbSession ¶
type DbSession interface {
Sync(bean ...interface{})
Get(dest interface{}, locked bool, orderby string, conds string, params ...interface{}) bool
Find(rowsSlicePtr interface{}, md interface{}, orderby string, from int, limit int, conds string, params ...interface{}) error
Insert(mds ...interface{}) int64
Update(md interface{}, columns []string, conds string, params ...interface{}) int64
Delete(md interface{}, conds string, params ...interface{}) int64
Exec(clause string, params ...interface{}) sql.Result
Query(clause string, params ...interface{}) []map[string][]byte
Count(bean interface{}, conds string, params ...interface{}) int64
Transaction(fc func(s DbSession) error)
Begin()
Rollback()
Commit()
Close()
}
Click to show internal directories.
Click to hide internal directories.