sql

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Between

func Between[FieldType any, Selector any](field *FieldType, start, end Selector) (string, Selector, Selector)

func Eq

func Eq[FieldType any, Selector any](field *FieldType, query Selector) (string, Selector)

func Field

func Field[T any](fieldPointer *T) string

func Ge

func Ge[FieldType any, Selector any](field *FieldType, query Selector) (string, Selector)

func Gt

func Gt[FieldType any, Selector any](field *FieldType, query Selector) (string, Selector)

func In

func In[FieldType any, Selector any](field *FieldType, query []Selector) (string, []Selector)

func InitField

func InitField(model Tabler)

func IsNil

func IsNil[FieldType any](field *FieldType) string

func Le

func Le[FieldType any, Selector any](field *FieldType, query Selector) (string, Selector)

func LeftOn

func LeftOn[LeftField any, RightField any](tabler Tabler, left *LeftField, right *RightField) string

func Like

func Like[FieldType any](field *FieldType, str string) (string, string)

func LikeLeft

func LikeLeft[FieldType any](field *FieldType, str string) (string, string)

func LikeRight

func LikeRight[FieldType any](field *FieldType, str string) (string, string)

func Lt

func Lt[FieldType any, Selector any](field *FieldType, query Selector) (string, Selector)

func Ne

func Ne[FieldType any, Selector any](field *FieldType, query Selector) (string, Selector)

func On

func On[LeftField any, RightField any](tabler Tabler, left *LeftField, right *RightField) string

func RightOn

func RightOn[LeftField any, RightField any](tabler Tabler, left *LeftField, right *RightField) string

Types

type Tabler

type Tabler interface {
	TableName() string
}

Jump to

Keyboard shortcuts

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