Documentation
¶
Index ¶
- type BinaryOperatorDescriptor
- func BooleanOperatorDescriptor(op string) BinaryOperatorDescriptor
- func ComparisonOperatorDescriptor(op string) BinaryOperatorDescriptor
- func NillableComparisonOperatorDescriptor(op, nilOp string) BinaryOperatorDescriptor
- func NumericOperatorDescriptor(op string) BinaryOperatorDescriptor
- func StringLikeOperatorDescriptor(prefix, suffix string) BinaryOperatorDescriptor
- type BinaryOperatorTypeConstraint
- type ExprType
- type TranslationResult
- type UnaryOperatorDescriptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryOperatorDescriptor ¶
type BinaryOperatorDescriptor struct {
TypeConstraints []BinaryOperatorTypeConstraint
OpTranslator func(left, right TranslationResult) TranslationResult
}
func BooleanOperatorDescriptor ¶
func BooleanOperatorDescriptor(op string) BinaryOperatorDescriptor
func ComparisonOperatorDescriptor ¶
func ComparisonOperatorDescriptor(op string) BinaryOperatorDescriptor
func NillableComparisonOperatorDescriptor ¶
func NillableComparisonOperatorDescriptor(op, nilOp string) BinaryOperatorDescriptor
NillableComparisonOperatorDescriptor is a special ComparisonOperatorDescriptor which handles NULL comparison
func NumericOperatorDescriptor ¶
func NumericOperatorDescriptor(op string) BinaryOperatorDescriptor
func StringLikeOperatorDescriptor ¶
func StringLikeOperatorDescriptor(prefix, suffix string) BinaryOperatorDescriptor
type ExprType ¶
type ExprType string
const ( ExprTypeNil ExprType = "expr_nil" ExprTypeInt ExprType = "expr_int" ExprTypeFloat ExprType = "expr_float" ExprTypeBool ExprType = "expr_bool" ExprTypeString ExprType = "expr_string" ExprTypeTimestamp ExprType = "expr_timestamp" ExprTypeIntIdentifier ExprType = "int" ExprTypeFloatIdentifier ExprType = "float" ExprTypeBoolIdentifier ExprType = "bool" ExprTypeStringIdentifier ExprType = "string" ExprTypeTimestampIdentifier ExprType = "timestamp" ExprTypeJSONIdentifier ExprType = "json" )
type TranslationResult ¶
type UnaryOperatorDescriptor ¶
type UnaryOperatorDescriptor struct {
TypeConstraints []ExprType
OpTranslator func(nested TranslationResult) TranslationResult
}
func UnaryBooleanOperatorDescriptor ¶
func UnaryBooleanOperatorDescriptor(op string) UnaryOperatorDescriptor
func UnaryNumericOperatorDescriptor ¶
func UnaryNumericOperatorDescriptor(op string) UnaryOperatorDescriptor
Click to show internal directories.
Click to hide internal directories.