Documentation ¶
Index ¶
- Constants
- func Init() (orm.ORM, error)
- type DBConn
- type Model
- func (m Model) Asc(condition interface{}) orm.ORMModel
- func (m Model) Create(data interface{}) (id string, err error)
- func (m Model) Delete(data interface{}) error
- func (m Model) Desc(condition interface{}) orm.ORMModel
- func (m Model) Find() orm.ORMQuary
- func (m Model) GetCollection(dest interface{}) string
- func (m Model) Limit(limit int) orm.ORMModel
- func (m Model) Offset(offset int) orm.ORMModel
- func (m Model) Page(page, limit int) orm.ORMModel
- func (m Model) Save(data interface{}) (id string, err error)
- func (m Model) Update(data interface{}) error
- func (m Model) Where(condition interface{}) orm.ORMModel
- func (m Model) WhereGt(condition interface{}) orm.ORMModel
- func (m Model) WhereIs(key string, value any) orm.ORMModel
- func (m Model) WhereLt(condition interface{}) orm.ORMModel
- func (m Model) WhereNot(condition interface{}) orm.ORMModel
- func (m Model) WhereOr(condition interface{}) orm.ORMModel
- type Quary
- type Table
Constants ¶
View Source
const ( WhereIs = iota WhereNot WhereGt WhereLt WhereOr OrderAsc OrderDesc )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Model ¶
Click to show internal directories.
Click to hide internal directories.