Documentation
¶
Index ¶
- type Dao
- func (dao *Dao) AutoMigrate(dst interface{}, settings ...map[string]interface{}) error
- func (Dao) BeanName() string
- func (dao *Dao) Ctx(ctx context.Context) *Dao
- func (dao *Dao) DB() *gorm.DB
- func (dao *Dao) Delete(db *gorm.DB, cause *wrapper.Query) (int64, error)
- func (dao *Dao) Distinct(args ...interface{}) *Dao
- func (dao *Dao) FindAll(cause *wrapper.Query, target interface{}) error
- func (dao *Dao) FindOne(cause *wrapper.Query, target interface{}) (ok bool, err error)
- func (dao *Dao) Insert(value interface{}) error
- func (dao *Dao) List(cause *wrapper.Query, target interface{}, limit ...int) error
- func (dao *Dao) Model(value interface{}) *Dao
- func (dao *Dao) Page(cause *wrapper.Query, target interface{}, page, size int) (total int64, err error)
- func (dao *Dao) Select(query interface{}, args ...interface{}) *Dao
- func (dao *Dao) Sum(field string, cause *wrapper.Query, target interface{}) (err error)
- func (dao *Dao) Table(name string, args ...interface{}) *Dao
- func (dao *Dao) Transaction(fc func(tx *Dao) error, opts ...*sql.TxOptions) error
- func (dao *Dao) Update(update *wrapper.Update) (int64, error)
- func (dao *Dao) Where(wrapper *wrapper.Query) *gorm.DB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.