where

package
v0.0.0-...-a98f5d9 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Number

type Number interface {
	int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64 | float32 | float64
}

type Where

type Where struct {
	Desc string
	Args []any
}

func AND

func AND(Where *Where) *Where

func BETWEEN

func BETWEEN(field string, from, to any) *Where

(field BETWEEN from AND to)

func EQ

func EQ(field string, value any, ignore ...any) *Where

field = value

func GT

func GT(field string, value any, ignore ...any) *Where

field > value

func GTE

func GTE(field string, value any, ignore ...any) *Where

field >= value

func IN

func IN(field string, values ...any) *Where

field IN (values)

func LIKE

func LIKE(field string, value string) *Where

field LIKE value

func LT

func LT(field string, value any, ignore ...any) *Where

field < value

func LTE

func LTE(field string, value any, ignore ...any) *Where

field <= value

func NEQ

func NEQ(field string, value any, ignore ...any) *Where

field != value

func NOTBETWEEN

func NOTBETWEEN(field string, from, to any) *Where

(field NOT BETWEEN from AND to)

func NOTIN

func NOTIN(field string, values ...any) *Where

field NOT IN (values)

func OR

func OR(Where *Where) *Where

Jump to

Keyboard shortcuts

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