scope

package
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdScope

func IdScope(id uint) func(db *gorm.DB) *gorm.DB

IdScope - id uint

func InIdsScope

func InIdsScope(ids []uint) func(db *gorm.DB) *gorm.DB

InIdsScope - ids []uint

func InNamesScope added in v1.1.7

func InNamesScope(names []string) func(db *gorm.DB) *gorm.DB

InNamesScope - names []string

func InUuidsScope added in v1.1.7

func InUuidsScope(uuids []string) func(db *gorm.DB) *gorm.DB

InUuidsScope - uuids []string

func NeIdScope

func NeIdScope(id uint) func(db *gorm.DB) *gorm.DB

NeIdScope - id uint

func PaginateScope

func PaginateScope(page, pageSize int, sort, orderBy string) func(db *gorm.DB) *gorm.DB

PaginateScope return paginate scope for gorm - page int - pageSize int - sort string - orderBy string

Types

This section is empty.

Jump to

Keyboard shortcuts

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