search

package
v0.0.0-...-0ae98b0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIncludes

func AddIncludes(includes string, query *gorm.DB) *gorm.DB

func AddScopes

func AddScopes(txn *gorm.DB, predicates ...[]func(db *gorm.DB) *gorm.DB) *gorm.DB

func GetPaginationPredicates

func GetPaginationPredicates(page int, pageSize int) []func(db *gorm.DB) *gorm.DB

func GetSortPredicates

func GetSortPredicates(sortParams string) []func(db *gorm.DB) *gorm.DB

func GetWherePredicates

func GetWherePredicates(query *gorm.DB, filterMap dto.SearchFilters, repoModel interface{}) (predicates []func(db *gorm.DB) *gorm.DB, err error)

func ParseFilters

func ParseFilters(filters string) (filterMap dto.SearchFilters, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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