package
0.2.1
Repository: https://github.com/theory/sqljson.git
Documentation: pkg.go.dev

# Functions

LinkNodes assembles nodes into a linked list, where a call to Next on each returns the next node in the list until the last node, where Next returns nil.
New creates a new AST with n as its root.
NewAny returns a new AnyNode with first as its first index and last as its last.
NewArrayIndex creates a new ArrayIndexNode consisting of subscripts.
NewBinary returns a new BinaryNode where op represents the binary operator and left and right the operands.
NewConst creates a new ConstNode defined by kind.
NewInteger returns a new IntegerNode representing num.
NewKey returns a new KeyNode with key.
NewMethod returns a new MethodNode with name.
NewNumeric returns a new NumericNode representing num.
NewRegex returns anew RegexNode that compares node to the regular expression pattern configured by flags.
NewString returns a new StringNode representing str.
NewUnary returns a new UnaryNode where op represents the unary operator and node its operand.
NewUnaryOrNumber returns a new node for op ast.UnaryPlus or ast.UnaryMinus.
NewVariable returns a new VariableNode named name.

# Constants

# Structs

AnyNode represents any node in a path accessor with the expression 'first TO last'.
ArrayIndexNode represents the nodes in an array index expression.
AST represents the complete abstract syntax tree for a parsed SQL/JSON path.
BinaryNode represents a binary operation.
ConstNode represents a constant node in the path.
IntegerNode represents an integral value.
KeyNode represents a SQL/JSON path key expression, e.g., '.foo'.
MethodNode represents a path method.
NumericNode represents a numeric (non-integer) value.
RegexNode represents a regular expression.
StringNode represents a string parsed from the path.
UnaryNode represents a unary operation.
VariableNode represents a SQL/JSON path variable name.

# Interfaces

Node represents a single node in the AST.

# Type aliases

BinaryOperator represents a binary operator.
Constant is a constant value parsed from the path.
MethodName represents the name of a path method.
UnaryOperator represents a unary operator.