daoctl

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(db *gdb.Model, searchFields ...model.SearchField) (total int)

func Find

func Find[T any](db *gdb.Model, searchFields ...model.SearchField) (response *model.CollectRes[T], err error)

func Get

func Get[T any](db *gdb.Model, searchFields ...model.SearchField) (*T, error)

func GetAll

func GetAll[T any](db *gdb.Model, info *model.Pagination) (response *model.CollectRes[T], err error)

func GetArr

func GetArr[T any](db *gdb.Model, searchFields []model.SearchField) (*T, error)

func GetById

func GetById[T any](db *gdb.Model, id int64) *T

func Query

func Query[T any](db *gdb.Model, searchFields *model.SearchFilter, IsExport bool) (response *model.CollectRes[T], err error)

func RemoveQueryCache

func RemoveQueryCache(db gdb.DB, prefix string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL