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