Expand description
Recursive-descent parser: token stream → validated typed AST.
Structs§
- Parser
- Canonical QQL parser facade.
- Recovered
Script - A script parse that keeps going after syntax errors.
Constants§
- MAX_
STATEMENTS - Hard upper bound for one parsed script. Callers that need larger imports should split them into bounded batches before parsing.
- STRICT_
MODE_ KEYS - Closed key set of
WITH STRICT_MODE (…)(OpenAPIStrictModeConfig).
Functions§
- ascii_
equal - Returns true when
sequalsother, ignoring ASCII case. - check_
deleted_ threshold - Checks that
deleted_thresholdis a number between 0.0 and 1.0. - config_
bool - Reads a boolean config value, returning
Nonewhen absent or not a bool. - config_
float_ range - Reads a numeric config value, or
Nonewhen absent or outside[min, max]. - config_
has_ key - Returns true when the config contains the given key (case-insensitive).
- config_
max_ optimization_ threads - Reads a thread count as a positive integer or the string
auto. - config_
non_ negative_ u64 - Reads a non-negative integer config value;
Nonewhen absent, error when invalid. - config_
positive_ u64 - Reads a positive integer config value;
Nonewhen absent, error when invalid. - config_
value - Looks up a config entry by key, comparing ASCII case-insensitively.
- is_
contextual_ field_ name - Returns true when a token kind can serve as a contextual field name.
- is_
strict_ mode_ key - True when
keynames aSTRICT_MODEoption (case-insensitive). - merge_
collection_ config - Merges new collection config clauses into
current, erroring on duplicates. - validate_
hnsw_ value - Type-checks one HNSW config option (
m,ef_construct,on_disk,memory, …). - validate_
index_ options - Type-checks CREATE INDEX options, erroring on unknown keys or bad value types.
- validate_
optimizers_ value - Type-checks one optimizers config option (
deleted_threshold,memmap_threshold, …). - validate_
params_ value - Type-checks one collection
PARAMSoption (replication, sharding, memory, …). - validate_
strict_ mode_ value - Type-checks one strict-mode config option by shape (ranges are enforced at plan time so hand-built ASTs fail closed there too).
- validate_
vectors_ value - Type-checks one vectors config option (
on_disk,memory,datatype). - validate_
wal_ value - Type-checks one WAL config option (
wal_capacity_mb, …).