Skip to main content

Module ast

Module ast 

Source
Expand description

Shared query AST for GQL/SPARQL parsing and SQL compilation.

Structs§

Condition
A predicate in the WHERE clause: variable.property op value.
EdgePattern
An edge binding with relation alternatives, direction, and inclusive hop bounds.
GqlQuery
A parsed query: pattern, predicates, projections, and optional row limit.
MatchPattern
The MATCH pattern of a GQL query, as an alternating sequence of node and edge elements.
NodePattern
A node binding with optional kind, governed subtype, and property filters.

Enums§

CompareOp
Comparison operator used in WHERE clause conditions.
ConditionValue
A typed condition value; integer and decimal forms remain distinct.
EdgeDirection
Traversal direction for an edge in the MATCH pattern.
PatternElement
A single element in the MATCH pattern – either a node or an edge.
QueryValue
A backend-independent SQL parameter emitted by the compiler.
ReturnItem
A single item in the RETURN clause — either a bound variable or a property projection.
WhereExpr
A WHERE expression tree that preserves AND/OR grouping.