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(out 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(out 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(out interface{}, modify interface{}) error
- func (h *Helper) SaveByID(id interface{}, out 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 ¶
Click to show internal directories.
Click to hide internal directories.