Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalOperator ¶
CanonicalOperator normalizes alias operators to canonical names.
func ParseNumeric ¶
ParseNumeric parses a numeric literal into int64 or float64.
Types ¶
type OperatorValue ¶
OperatorValue contains the parsed operator + value pair from an expression like "op:value".
func ParseOperatorValueEqualsOnEmptyOperator ¶
func ParseOperatorValueEqualsOnEmptyOperator(raw string) OperatorValue
ParseOperatorValueEqualsOnEmptyOperator parses "op:value" while treating empty op as equals. This preserves legacy behavior used by query normalizer.
func ParseOperatorValueLenient ¶
func ParseOperatorValueLenient(raw string) OperatorValue
ParseOperatorValueLenient parses "op:value"; malformed pairs fallback to equals(raw).
func ParseOperatorValueStrict ¶
func ParseOperatorValueStrict(raw string) (OperatorValue, error)
ParseOperatorValueStrict parses "op:value"; malformed pairs return an error.
type SQLOperatorResult ¶
SQLOperatorResult maps an operator token to SQL syntax and the normalized value.
func ToSQLOperator ¶
func ToSQLOperator(op, value string) (SQLOperatorResult, error)
ToSQLOperator converts a logical operator to SQL syntax. For LIKE operators, it also applies wildcard normalization to value.