Skip to main content

Module parser

Module parser 

Source
Expand description

Recursive-descent parser: token stream → validated typed AST.

Structs§

Parser
Canonical QQL parser facade.
RecoveredScript
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 (…) (OpenAPI StrictModeConfig).

Functions§

ascii_equal
Returns true when s equals other, ignoring ASCII case.
check_deleted_threshold
Checks that deleted_threshold is a number between 0.0 and 1.0.
config_bool
Reads a boolean config value, returning None when absent or not a bool.
config_float_range
Reads a numeric config value, or None when 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; None when absent, error when invalid.
config_positive_u64
Reads a positive integer config value; None when 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 key names a STRICT_MODE option (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 PARAMS option (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, …).