scopes

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eq

func Eq(field string, value string) func(db *gorm.DB) *gorm.DB

func Eqi64

func Eqi64(field string, value int64) func(db *gorm.DB) *gorm.DB

func Eqi8

func Eqi8(field string, value int8) func(db *gorm.DB) *gorm.DB

func Equ

func Equ(field string, value uint) func(db *gorm.DB) *gorm.DB

func In

func In[T any](field string, values []T) func(db *gorm.DB) *gorm.DB

func InnerJoin

func InnerJoin(model Model, alias string, on string, args ...interface{}) func(db *gorm.DB) *gorm.DB

func LeftJoin

func LeftJoin(model Model, alias string, on string, args ...interface{}) func(db *gorm.DB) *gorm.DB

func Paginate

func Paginate(page, size int) func(db *gorm.DB) *gorm.DB

func RightJoin

func RightJoin(model Model, alias string, on string, args ...interface{}) func(db *gorm.DB) *gorm.DB
func Search(fields []string, value string) func(db *gorm.DB) *gorm.DB

func Table

func Table(model Model, alias ...string) func(db *gorm.DB) *gorm.DB

Types

type Model

type Model interface {
	TableName() string
}

Jump to

Keyboard shortcuts

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