Documentation
¶
Index ¶
- Constants
- type DBConn
- type Model
- func (m Model) Asc(condition any) orm.ORMModel
- func (m Model) Create(data any) (id string, err error)
- func (m Model) Delete(data any) error
- func (m Model) Desc(condition any) orm.ORMModel
- func (m Model) Find() orm.ORMQuary
- func (m Model) GetContext() context.Context
- 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 any, value ...any) (id string, err error)
- func (m Model) Session(transactionFunc func(sessionContext context.Context) error) error
- func (m Model) SetContext(ctx context.Context) orm.ORMModel
- func (m Model) Update(data any, value ...any) error
- func (m Model) Where(condition any, value ...any) orm.ORMModel
- func (m Model) WhereGt(condition any, value ...any) orm.ORMModel
- func (m Model) WhereGte(condition any, value ...any) orm.ORMModel
- func (m Model) WhereIs(key string, value any) orm.ORMModel
- func (m Model) WhereLt(condition any, value ...any) orm.ORMModel
- func (m Model) WhereLte(condition any, value ...any) orm.ORMModel
- func (m Model) WhereNot(condition any, value ...any) orm.ORMModel
- func (m Model) WhereOr(condition any, value ...any) orm.ORMModel
- type Quary
Constants ¶
View Source
const ( WhereIs = iota WhereNot WhereGt WhereLt WhereOr OrderAsc OrderDesc WhereGte WhereLte )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
Data any
OpList *sync.Map // key:操作模式Mode value:操作值
Ctx *context.Context //上下文
// contains filtered or unexported fields
}
func (Model) GetContext ¶ added in v0.0.4
func (Model) SetContext ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.