Versions in this module Expand all Collapse all v1 v1.0.1 Dec 30, 2024 v1.0.0 Nov 20, 2024 Changes in this version + var MAX_DATA int64 + type DBFactory struct + func (ds DBFactory) GetDB(dbname string) (*gorm.DB, error) + type DBHelper struct + func NewDBHelper() *DBHelper + func NewDBHelperByTable(table string) *DBHelper + func (helper *DBHelper) Count(db *gorm.DB, query interface{}) int64 + func (helper *DBHelper) Delete(db *gorm.DB, model interface{}) *gorm.DB + func (helper *DBHelper) Find(db *gorm.DB, query interface{}, orderBy interface{}, selects interface{}) entity.Result + func (helper *DBHelper) First(db *gorm.DB, query interface{}, orderBy interface{}, selects interface{}) entity.Result + func (helper *DBHelper) Insert(db *gorm.DB, model interface{}) *gorm.DB + func (helper *DBHelper) Last(db *gorm.DB, query interface{}, orderBy interface{}, selects interface{}) entity.Result + func (helper *DBHelper) Page(db *gorm.DB, query interface{}, page entity.Page, orderBy interface{}, ...) entity.Result + func (helper *DBHelper) QueryDict(db *gorm.DB, columns types.ColumnInfos) map[string]map[interface{}]interface{} + func (helper *DBHelper) Save(db *gorm.DB, model interface{}) *gorm.DB + func (helper *DBHelper) Update(db *gorm.DB, id any, model interface{}) *gorm.DB + type IDBHelper interface + Count func(db *gorm.DB, query interface{}) int64 + Delete func(db *gorm.DB, model interface{}) *gorm.DB + Find func(db *gorm.DB, query interface{}) entity.Result + First func(db *gorm.DB, query interface{}) entity.Result + Insert func(db *gorm.DB, model interface{}) *gorm.DB + Last func(db *gorm.DB, query interface{}) entity.Result + Page func(db *gorm.DB, query interface{}, page entity.Page) entity.Result + QueryDict func(db *gorm.DB, columns types.ColumnInfos) map[string]map[interface{}]interface{} + Save func(db *gorm.DB, model interface{}) *gorm.DB + Update func(db *gorm.DB, id string, model interface{}) *gorm.DB