Documentation ¶
Index ¶
- func Transaction(tf transactionFunc, attempts uint)
- type Helper
- func (h *Helper) Count(in model.Modeller, filterArr []model.Filter, withTrashed bool) (count uint, err error)
- func (h *Helper) Create(outPtr interface{}) error
- func (h *Helper) Delete(in interface{}, force bool) error
- func (h *Helper) Exist(in model.Modeller, withTrashed bool) (exist bool)
- func (h *Helper) First(outPtr interface{}, withTrashed bool) error
- func (h *Helper) FirstForUpdate(outPtr interface{}, withTrashed bool) error
- func (h *Helper) Q(filterArr []model.Filter, sortArr []model.Sort, limit int, withTrashed bool) *gorm.DB
- func (h *Helper) Restore(in interface{}) error
- func (h *Helper) Save(outPtr interface{}, modify interface{}, nullDataPtr ...interface{}) error
- func (h *Helper) SaveByID(id interface{}, outPtr interface{}, modify interface{}) error
- func (h *Helper) SetTX(db *gorm.DB)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Transaction ¶
func Transaction(tf transactionFunc, attempts uint)
Types ¶
type Helper ¶
func (*Helper) FirstForUpdate ¶ added in v0.3.8
Click to show internal directories.
Click to hide internal directories.