Expand description
The ZQL abstract syntax tree (packages/zero-protocol/src/ast.ts).
Modules§
- strict
strictASTSchema(packages/zero-protocol/src/ast.ts), for ASTs a client sends: nested at mostMAX_DEPTHdeep, and parsed in valita’sstrictmode even inside a lenient parse, so an AST with a key zero doesn’t know is rejected rather than run as a different query.
Structs§
- Aggregate
- An aggregate of a query or a relationship (
Aggregate). - Ast
- A query: a table, its filters, relationships, order, and bounds.
- Bound
- Correlated
Subquery - Correlation
- Order
Part
Enums§
- Aggregate
Function - An aggregate function (
AggregateFunction). - Anchor
- Condition
- Correlated
Subquery Operator - Direction
- Json
Path Segment - One step of a JSON path: an object key or an array index.
- Simple
Operator - Static
Field - System
- Value
Position - One side of a simple condition. A literal is a string, number, boolean, null, or an array of strings, numbers, and booleans.
Constants§
- MAX_
JSON_ PATH_ INDEX MAX_JSON_PATH_INDEX: the largest array index a path may hold.
Functions§
- format_
json_ path formatJsonPathReference:metadata.tags[0].- json_
value_ at jsonValueAtPath: the value atpathinvalue, strictly: a key reads an object’s own key and an index an array’s element. Any other step, and a missing value, is null.- normalize_
condition