query

package
v1.21.8 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Equal        Operator = "="
	NotEqual     Operator = "!="
	Lt           Operator = "<"
	Gt           Operator = ">"
	Lte          Operator = "<="
	Gte          Operator = ">="
	Constains    Operator = "contains"
	NotContains  Operator = "not contains"
	StartsWith   Operator = "starts with"
	NotStartWith Operator = "not starts with"
	EndWith      Operator = "ends with"
	NotEndWith   Operator = "not ends with"
	Exists       Operator = "exists"
	NotExists    Operator = "not exists"

	And LogicOperator = "AND"
	Or  LogicOperator = "OR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryOperation

type BinaryOperation struct {
	Operator        Operator `` /* 145-byte string literal not displayed */
	Value           string   `schema:"Ожидаемое значение"`
	Field           string   `` /* 135-byte string literal not displayed */
	MappingSrcField string   `schema:"Исходное название поля маппинга"`
	SearchInCustom  bool     `` /* 223-byte string literal not displayed */
	IsPrimaryKey    bool     `` /* 222-byte string literal not displayed */
}

func (BinaryOperation) IsValid

func (bo BinaryOperation) IsValid() bool

type LogicOperation

type LogicOperation struct {
	LogicOperator LogicOperator `schema:"Логический оператор,['AND', 'OR']"`
	Terms         []Term        `schema:"Список условий"`
}

func (LogicOperation) IsValid

func (lo LogicOperation) IsValid() bool

type LogicOperator

type LogicOperator string

type Operator

type Operator string

type Term

type Term struct {
	LogicOperation  *LogicOperation  `schema:"Логическая операция"`
	BinaryOperation *BinaryOperation `schema:"Бинарная операция"`
}

func (Term) IsBinary

func (t Term) IsBinary() bool

func (Term) IsLogic

func (t Term) IsLogic() bool

func (Term) IsValid

func (t Term) IsValid() bool

Jump to

Keyboard shortcuts

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