gormx

package
v0.0.0-...-6ded4b1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstance

func GetInstance(opt ...cfg) *gorm.DB

func PageLimit

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

Types

type DBFunc

type DBFunc func(*gorm.DB)

func WithBetween

func WithBetween[T comparable](column string, begin, end T) DBFunc

func WithLRLike

func WithLRLike(column, value string) DBFunc

func WithLike

func WithLike(column, value string) DBFunc

func WithValue

func WithValue(column string, value any) DBFunc

func WithValueIn

func WithValueIn(column string, value any) DBFunc

func WithWhere

func WithWhere(exp string, args ...any) DBFunc

Jump to

Keyboard shortcuts

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