Documentation ¶
Index ¶
- func Count(db *gdb.Model, searchFields ...model.SearchField) (total int)
- func Find[T any](db *gdb.Model, searchFields ...model.SearchField) (response *model.CollectRes[T], err error)
- func Get[T any](db *gdb.Model, searchFields ...model.SearchField) (*T, error)
- func GetAll[T any](db *gdb.Model, info *model.Pagination) (response *model.CollectRes[T], err error)
- func GetArr[T any](db *gdb.Model, searchFields []model.SearchField) (*T, error)
- func GetById[T any](db *gdb.Model, id int64) *T
- func Query[T any](db *gdb.Model, searchFields *model.SearchFilter, IsExport bool) (response *model.CollectRes[T], err error)
- func RemoveQueryCache(db gdb.DB, prefix string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Find ¶
func Find[T any](db *gdb.Model, searchFields ...model.SearchField) (response *model.CollectRes[T], err error)
func GetAll ¶
func GetAll[T any](db *gdb.Model, info *model.Pagination) (response *model.CollectRes[T], err error)
func Query ¶
func Query[T any](db *gdb.Model, searchFields *model.SearchFilter, IsExport bool) (response *model.CollectRes[T], err error)
func RemoveQueryCache ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.