package
0.16.0
Repository: https://github.com/chaisql/chai.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package glob implements wildcard pattern matching algorithms for strings.

# Functions

Add creates an expression thats evaluates to the result of a + b.
And creates an expression that evaluates a And b And returns true if both are truthy.
Between returns a function that creates a BETWEEN operator that returns true if x is between a and b.
BitwiseAnd creates an expression thats evaluates to the result of a & b.
BitwiseOr creates an expression thats evaluates to the result of a | b.
BitwiseXor creates an expression thats evaluates to the result of a ^ b.
Concat creates an expression that concatenates two text values together.
No description provided by the author
Div creates an expression thats evaluates to the result of a / b.
Eq creates an expression that returns true if a equals b.
Equal reports whether a and b are equal by first calling IsEqual if they have an IsEqual method with this signature: IsEqual(Expr) bool If not, it returns whether a and b values are equal.
Gt creates an expression that returns true if a is greater than b.
Gte creates an expression that returns true if a is greater than or equal to b.
In creates an expression that evaluates to the result of a IN b.
Is creates an expression that evaluates to the result of a IS b.
IsArithmeticOperator returns true if e is one of +, -, *, /, %, &, |, or ^ operators.
IsComparisonOperator returns true if e is one of =, !=, >, >=, <, <=, IS, IS NOT, IN, or NOT IN operators.
IsNot creates an expression that evaluates to the result of a IS NOT b.
Like creates an expression that evaluates to the result of a LIKE b.
Lt creates an expression that returns true if a is lesser than b.
Lte creates an expression that returns true if a is lesser than or equal to b.
Mod creates an expression thats evaluates to the result of a % b.
Mul creates an expression thats evaluates to the result of a * b.
Neq creates an expression that returns true if a equals b.
Not creates an expression that returns true if e is falsy.
NotIn creates an expression that evaluates to the result of a NOT IN b.
NotLike creates an expression that evaluates to the result of a NOT LIKE b.
Or creates an expression that first evaluates a, returns true if truthy, then evaluates b, returns true if truthy Or false if falsy.
Sub creates an expression thats evaluates to the result of a - b.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AndOp is the And operator.
No description provided by the author
Cast represents the CAST expression.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
KVPair associates an identifier with an expression.
KVPairs is a list of KVPair.
No description provided by the author
A LiteralValue represents a literal value of any type defined by the value package.
NamedExpr is an expression with a name.
No description provided by the author
No description provided by the author
No description provided by the author
NotOp is the NOT unary operator.
OrOp is the Or operator.
Parentheses is a special expression which turns any sub-expression as unary.
A Wildcard is an expression that iterates over all the fields of a object.

# Interfaces

An Aggregator is an expression that aggregates objects into one result.
An AggregatorBuilder is a type that can create aggregators.
An Expr evaluates to a value.
A Function is an expression whose evaluation calls a function previously defined.
An Operator is a binary expression that takes two operands and executes an operation on them.

# Type aliases

LiteralExprList is a list of expressions.
NamedParam is an expression which represents the name of a parameter.
A Path is an expression that extracts a value from a object at a given path.
PositionalParam is an expression which represents the position of a parameter.