clause

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OP_EQ       = "="
	OP_NEQ      = "<>"
	OP_GT       = ">"
	OP_GTE      = ">="
	OP_LT       = "<"
	OP_LTE      = "<="
	OP_LIKE     = "LIKE"
	OP_NOT_LIKE = "NOT LIKE"
	OP_IN       = "IN"
	OP_NOT_IN   = "NOT IN"
	OP_IS_NULL  = "IS NULL"
	OP_NOT_NULL = "IS NOT NULL"
	OP_AND      = "AND"
	OP_OR       = "OR"
)

Variables

This section is empty.

Functions

func Consume

func Consume(tx *gorm.DB, cls models.IClause) *gorm.DB

Consume consumes a clause and returns *gorm.DB

func NewClause

func NewClause(field, operator string, value interface{}, children ...models.IClause) models.IClause

NewClause creates a new clause.

Types

This section is empty.

Jump to

Keyboard shortcuts

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