Documentation ¶
Index ¶
- type CTx
- func (tx *CTx) Commit() error
- func (tx *CTx) Delete() error
- func (tx *CTx) Equal(field string, v any) *CTx
- func (tx *CTx) Insert(v ...any) error
- func (tx *CTx) Limit(count int, offset ...int) *CTx
- func (tx *CTx) Order(name string, desc ...bool) *CTx
- func (tx *CTx) Reset()
- func (tx *CTx) Rollback() error
- func (tx *CTx) Select(v any) (int, error)
- func (tx *CTx) Set(field string, v any) *CTx
- func (tx *CTx) Table(name string) *CTx
- func (tx *CTx) Unequal(field string, v any) *CTx
- func (tx *CTx) Update() error
- func (tx *CTx) Where(field, flag string, v any) *CTx
- type Engine
- type Session
- func (session *Session) Begin() (*CTx, error)
- func (session *Session) Delete() error
- func (session *Session) Equal(field string, v any) *Session
- func (session *Session) Insert(v ...any) error
- func (session *Session) Limit(count int, offset ...int) *Session
- func (session *Session) Order(name string, desc ...bool) *Session
- func (session *Session) Reset()
- func (session *Session) Select(v any) (int, error)
- func (session *Session) Set(field string, v any) *Session
- func (session *Session) Table(name string) *Session
- func (session *Session) Unequal(field string, v any) *Session
- func (session *Session) Update() error
- func (session *Session) Where(field, flag string, v any) *Session
- type StoreInsert
- type StoreLimit
- type StoreOrder
- type StoreSet
- type StoreWhere
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
Engine ORM引擎
func (*Engine) SetMaxIdleConns ¶
SetMaxIdleConns 设置池中最大空闲连接数,即保留连接以备下次使用
func (*Engine) SetMaxOpenConns ¶
SetMaxOpenConns 设置打开的最大连接数
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session 数据库会话
type StoreInsert ¶
type StoreInsert struct {
// contains filtered or unexported fields
}
StoreInsert 插入缓存
type StoreLimit ¶
type StoreLimit struct {
// contains filtered or unexported fields
}
StoreLimit limit缓存
type StoreOrder ¶
type StoreOrder struct {
// contains filtered or unexported fields
}
StoreOrder orderby缓存
type StoreWhere ¶
type StoreWhere struct {
// contains filtered or unexported fields
}
StoreWhere where缓存
Click to show internal directories.
Click to hide internal directories.