orm

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filters

func Filters(where interface{}) func(db *gorm.DB) *gorm.DB

Filters ...

func Ilike

func Ilike(key, value string) func(db *gorm.DB) *gorm.DB

Ilike Fuzzy search when there is value

func Like

func Like(key, value string) func(db *gorm.DB) *gorm.DB

Like Fuzzy search when there is value

func OnlyTrashed

func OnlyTrashed(res bool) func(db *gorm.DB) *gorm.DB

OnlyTrashed ...

func Order

func Order(str string) func(db *gorm.DB) *gorm.DB

Order Sort

func Paginate

func Paginate(pageSize, currentPage int) func(db *gorm.DB) *gorm.DB

Paginate ...

func Where

func Where(key, conditions string, value interface{}) func(db *gorm.DB) *gorm.DB

Where Where to search when there is value

func WhereIn

func WhereIn(key string, value interface{}) func(db *gorm.DB) *gorm.DB

WhereIn WhereIn search when there is value

Types

This section is empty.

Jump to

Keyboard shortcuts

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