filtersql

package module
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 8 Imported by: 0

README

filtersql

tag Go Version GoDoc Build Status Go report Coverage Contributors License

Documentation

Index

Constants

View Source
const UNLIMITED = -1

Variables

This section is empty.

Functions

This section is empty.

Types

type Allow

type Allow struct {
	Comparisons    Comparisons
	Ors            int
	Ands           int
	Nots           int
	GroupingParens int
}

type BetweenOperator added in v0.9.0

type BetweenOperator struct {
	FromsAccessor BetweenOperatorFroms
	TosAccessor   BetweenOperatorTos
}

BetweenOperator

func (BetweenOperator) Froms added in v0.9.0

func (bo BetweenOperator) Froms() Froms

func (BetweenOperator) ToString added in v0.9.0

func (BetweenOperator) ToString() string

func (BetweenOperator) Tos added in v0.9.0

func (bo BetweenOperator) Tos() Tos

type BetweenOperatorFroms added in v0.9.0

type BetweenOperatorFroms []IBetweenOperatorFrom

BetweenOperator

type BetweenOperatorTos added in v0.9.0

type BetweenOperatorTos []IBetweenOperatorTo

BetweenOperator

type Column

type Column struct {
	Qualifier           string
	Name                string
	ComparisonOperators ComparisonOperators
	BetweenOperator     IBetweenOperator
}

type ComparisonOperators

type ComparisonOperators []IComparisonOperator

type Comparisons

type Comparisons []ILeft

type Config

type Config struct {
	Allow Allow
	Debug bool
}

func (Config) Parse

func (config Config) Parse(filter string) (string, error)

type EqualsOperator

type EqualsOperator struct {
	RightsAccessor EqualsOperatorRights
}

EqualsOperator

func (EqualsOperator) Rights

func (eo EqualsOperator) Rights() Rights

func (EqualsOperator) ToString

func (EqualsOperator) ToString() string

type EqualsOperatorRights

type EqualsOperatorRights []IEqualsOperatorRight

EqualsOperator

type From added in v0.9.0

type From interface {
	// contains filtered or unexported methods
}

type Froms added in v0.9.0

type Froms []From

type GreaterThanOperator added in v0.2.0

type GreaterThanOperator struct {
	RightsAccessor GreaterThanOperatorRights
}

GreaterThanOperator

func (GreaterThanOperator) Rights added in v0.2.0

func (eo GreaterThanOperator) Rights() Rights

func (GreaterThanOperator) ToString added in v0.2.0

func (GreaterThanOperator) ToString() string

type GreaterThanOperatorRights added in v0.2.0

type GreaterThanOperatorRights []IGreaterThanOperatorRight

GreaterThanOperator

type GreaterThanOrEqualOperator added in v0.2.0

type GreaterThanOrEqualOperator struct {
	RightsAccessor GreaterThanOrEqualOperatorRights
}

GreaterThanOrEqualOperator

func (GreaterThanOrEqualOperator) Rights added in v0.2.0

func (eo GreaterThanOrEqualOperator) Rights() Rights

func (GreaterThanOrEqualOperator) ToString added in v0.2.0

type GreaterThanOrEqualOperatorRights added in v0.2.0

type GreaterThanOrEqualOperatorRights []IGreaterThanOrEqualOperatorRight

GreaterThanOrEqualOperator

type IBetweenOperator added in v0.9.0

type IBetweenOperator interface {
	ToString() string
	Froms() Froms
	Tos() Tos
	// contains filtered or unexported methods
}

type IBetweenOperatorFrom added in v0.9.0

type IBetweenOperatorFrom interface {
	From() From
	// contains filtered or unexported methods
}

BetweenOperator

type IBetweenOperatorTo added in v0.9.0

type IBetweenOperatorTo interface {
	To() To
	// contains filtered or unexported methods
}

BetweenOperator

type IComparisonOperator

type IComparisonOperator interface {
	ToString() string
	Rights() Rights
	// contains filtered or unexported methods
}

func EqualsOperatorIntegerValue added in v0.7.0

func EqualsOperatorIntegerValue(fun func(int) bool) IComparisonOperator

func EqualsOperatorIntegerValueAny added in v0.7.0

func EqualsOperatorIntegerValueAny() IComparisonOperator

func EqualsOperatorStringValue added in v0.7.0

func EqualsOperatorStringValue(fun func(string) bool) IComparisonOperator

func EqualsOperatorStringValueAny added in v0.7.0

func EqualsOperatorStringValueAny() IComparisonOperator

func InOperatorIntegersValue added in v0.8.0

func InOperatorIntegersValue(fun func([]int) bool) IComparisonOperator

func InOperatorIntegersValueAny added in v0.8.0

func InOperatorIntegersValueAny() IComparisonOperator

func InOperatorStringsValue added in v0.7.0

func InOperatorStringsValue(fun func([]string) bool) IComparisonOperator

func InOperatorStringsValueAny added in v0.7.0

func InOperatorStringsValueAny() IComparisonOperator

func NotEqualsOperatorIntegerValue added in v0.7.0

func NotEqualsOperatorIntegerValue(fun func(int) bool) IComparisonOperator

func NotEqualsOperatorIntegerValueAny added in v0.7.0

func NotEqualsOperatorIntegerValueAny() IComparisonOperator

func NotEqualsOperatorStringValue added in v0.7.0

func NotEqualsOperatorStringValue(fun func(string) bool) IComparisonOperator

func NotEqualsOperatorStringValueAny added in v0.7.0

func NotEqualsOperatorStringValueAny() IComparisonOperator

func NotInOperatorIntegersValue added in v0.8.0

func NotInOperatorIntegersValue(fun func([]int) bool) IComparisonOperator

func NotInOperatorIntegersValueAny added in v0.8.0

func NotInOperatorIntegersValueAny() IComparisonOperator

func NotInOperatorStringsValue added in v0.8.0

func NotInOperatorStringsValue(fun func([]string) bool) IComparisonOperator

func NotInOperatorStringsValueAny added in v0.8.0

func NotInOperatorStringsValueAny() IComparisonOperator

type IEqualsOperator

type IEqualsOperator interface {
	// contains filtered or unexported methods
}

EqualsOperator

type IEqualsOperatorRight

type IEqualsOperatorRight interface {
	Right() Right
	// contains filtered or unexported methods
}

EqualsOperator

type IGreaterThanOperator added in v0.2.0

type IGreaterThanOperator interface {
	// contains filtered or unexported methods
}

GreaterThanOperator

type IGreaterThanOperatorRight added in v0.2.0

type IGreaterThanOperatorRight interface {
	Right() Right
	// contains filtered or unexported methods
}

GreaterThanOperator

type IGreaterThanOrEqualOperator added in v0.2.0

type IGreaterThanOrEqualOperator interface {
	// contains filtered or unexported methods
}

GreaterThanOrEqualOperator

type IGreaterThanOrEqualOperatorRight added in v0.2.0

type IGreaterThanOrEqualOperatorRight interface {
	Right() Right
	// contains filtered or unexported methods
}

GreaterThanOrEqualOperator

type IInOperator added in v0.3.0

type IInOperator interface {
	// contains filtered or unexported methods
}

InOperator

type IInOperatorRight added in v0.3.0

type IInOperatorRight interface {
	Right() Right
	// contains filtered or unexported methods
}

InOperator

type ILeft

type ILeft interface {
	// contains filtered or unexported methods
}

type ILessThanOperator added in v0.2.0

type ILessThanOperator interface {
	// contains filtered or unexported methods
}

LessThanOperator

type ILessThanOperatorRight added in v0.2.0

type ILessThanOperatorRight interface {
	Right() Right
	// contains filtered or unexported methods
}

LessThanOperator

type ILessThanOrEqualOperator added in v0.2.0

type ILessThanOrEqualOperator interface {
	// contains filtered or unexported methods
}

LessThanOrEqualOperator

type ILessThanOrEqualOperatorRight added in v0.2.0

type ILessThanOrEqualOperatorRight interface {
	Right() Right
	// contains filtered or unexported methods
}

LessThanOrEqualOperator

type ILiteralValueType

type ILiteralValueType interface {
	// contains filtered or unexported methods
}

LiteralValueType

type INotEqualsOperator added in v0.2.0

type INotEqualsOperator interface {
	// contains filtered or unexported methods
}

NotEqualsOperator

type INotEqualsOperatorRight added in v0.2.0

type INotEqualsOperatorRight interface {
	Right() Right
	// contains filtered or unexported methods
}

NotEqualsOperator

type INotInOperator added in v0.6.0

type INotInOperator interface {
	// contains filtered or unexported methods
}

NotInOperator

type INotInOperatorRight added in v0.6.0

type INotInOperatorRight interface {
	Right() Right
	// contains filtered or unexported methods
}

NotInOperator

type ITupleValueType added in v0.3.0

type ITupleValueType interface {
	// contains filtered or unexported methods
}

TupleValueType

type InOperator added in v0.3.0

type InOperator struct {
	RightsAccessor InOperatorRights
}

InOperator

func (InOperator) Rights added in v0.3.0

func (eo InOperator) Rights() Rights

func (InOperator) ToString added in v0.3.0

func (InOperator) ToString() string

type InOperatorRights added in v0.3.0

type InOperatorRights []IInOperatorRight

InOperator

type IntegerValue

type IntegerValue struct {
	ValidationFunc func(int) bool
}

IntegerValue

func (IntegerValue) Right

func (iv IntegerValue) Right() Right

type IntegerValues added in v0.8.0

type IntegerValues struct {
	ValidationFunc func([]int) bool
}

IntegerValues

func (IntegerValues) Right added in v0.8.0

func (iv IntegerValues) Right() Right

type LessThanOperator added in v0.2.0

type LessThanOperator struct {
	RightsAccessor LessThanOperatorRights
}

LessThanOperator

func (LessThanOperator) Rights added in v0.2.0

func (eo LessThanOperator) Rights() Rights

func (LessThanOperator) ToString added in v0.2.0

func (LessThanOperator) ToString() string

type LessThanOperatorRights added in v0.2.0

type LessThanOperatorRights []ILessThanOperatorRight

LessThanOperator

type LessThanOrEqualOperator added in v0.2.0

type LessThanOrEqualOperator struct {
	RightsAccessor LessThanOrEqualOperatorRights
}

LessThanOrEqualOperator

func (LessThanOrEqualOperator) Rights added in v0.2.0

func (eo LessThanOrEqualOperator) Rights() Rights

func (LessThanOrEqualOperator) ToString added in v0.2.0

func (LessThanOrEqualOperator) ToString() string

type LessThanOrEqualOperatorRights added in v0.2.0

type LessThanOrEqualOperatorRights []ILessThanOrEqualOperatorRight

LessThanOrEqualOperator

type LiteralValue

type LiteralValue struct {
	ValueType ILiteralValueType
}

LiteralValueType

func (LiteralValue) From added in v0.9.0

func (lv LiteralValue) From() From

func (LiteralValue) Right

func (lv LiteralValue) Right() Right

func (LiteralValue) To added in v0.9.0

func (lv LiteralValue) To() To

type NotEqualsOperator added in v0.2.0

type NotEqualsOperator struct {
	RightsAccessor NotEqualsOperatorRights
}

NotEqualsOperator

func (NotEqualsOperator) Rights added in v0.2.0

func (eo NotEqualsOperator) Rights() Rights

func (NotEqualsOperator) ToString added in v0.2.0

func (NotEqualsOperator) ToString() string

type NotEqualsOperatorRights added in v0.2.0

type NotEqualsOperatorRights []INotEqualsOperatorRight

NotEqualsOperator

type NotInOperator added in v0.6.0

type NotInOperator struct {
	RightsAccessor NotInOperatorRights
}

NotInOperator

func (NotInOperator) Rights added in v0.6.0

func (eo NotInOperator) Rights() Rights

func (NotInOperator) ToString added in v0.6.0

func (NotInOperator) ToString() string

type NotInOperatorRights added in v0.6.0

type NotInOperatorRights []INotInOperatorRight

NotInOperator

type Right interface {
	// contains filtered or unexported methods
}

type Rights

type Rights []Right

type StringValue

type StringValue struct {
	ValidationFunc func(string) bool
}

StringValue

func (StringValue) Right

func (sv StringValue) Right() Right

type StringValues added in v0.3.0

type StringValues struct {
	ValidationFunc func([]string) bool
}

StringValues

func (StringValues) Right added in v0.3.0

func (sv StringValues) Right() Right

type To added in v0.9.0

type To interface {
	// contains filtered or unexported methods
}

type Tos added in v0.9.0

type Tos []To

type TupleValue added in v0.3.0

type TupleValue struct {
	ValueType ITupleValueType
}

TupleValueType

func (TupleValue) Right added in v0.3.0

func (tv TupleValue) Right() Right

Jump to

Keyboard shortcuts

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