Documentation ¶
Index ¶
- type Model
- func (e Model) Add(model interface{}) (err error)
- func (e Model) Del(model interface{}, conds string, params ...interface{}) (err error)
- func (e Model) Delete(model interface{}, condition ...func(db *gorm.DB) *gorm.DB) error
- func (e Model) DeleteByConds(model interface{}, params ...interface{}) error
- func (e Model) FindCount(model interface{}, count *int64, condition ...func(db *gorm.DB) *gorm.DB) (err error)
- func (e Model) FindCountByConds(list interface{}, count *int64, conds string, params ...interface{}) error
- func (e Model) FindList(list interface{}, condition ...func(db *gorm.DB) *gorm.DB) (err error)
- func (e Model) FindListByConds(model interface{}, conds string, params ...interface{}) (err error)
- func (e Model) FindOne(model interface{}, condition ...func(db *gorm.DB) *gorm.DB) (err error)
- func (e Model) FindOneByConds(model interface{}, conds string, params ...interface{}) (err error)
- func (e Model) FindPage(list interface{}, count *int64, condition ...func(db *gorm.DB) *gorm.DB) (err error)
- func (e Model) Mod(model interface{}) (err error)
- func (e Model) ModByConds(model interface{}, conds string, params ...interface{}) (err error)
- func (e Model) ModMap(data interface{}, updates map[string]interface{}, ...) error
- func (e Model) Upsert(data interface{}, conflictColumns ...string) error
- func (e Model) UpsertDoUpdate(data interface{}, conflictColumns []string, doUpdates []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { Orm *gorm.DB `gorm:"-" json:"-"` Log *logger.Helper `gorm:"-" json:"-"` Error error `gorm:"-" json:"-"` }
func (Model) DeleteByConds ¶
func (Model) FindCountByConds ¶
func (Model) FindListByConds ¶
func (Model) FindOneByConds ¶
func (Model) ModByConds ¶
Click to show internal directories.
Click to hide internal directories.