Structs§
- Candidate
Spec - Datasource
Declaration - Datasource
Info - Information about a datasource declaration
- Dependency
Graph - Result of dependency resolution
- Directory
Graph - Edge
- File
Info - File
Node - A node in the dependency graph
- Graph
Core - Import
Info - Information about a single import
- Import
Resolver - Resolver for PreQL import dependencies
- Import
Statement - Network
Spec - Parsed
File - Persist
Info - Information about a persist statement
- Persist
Statement - Trilogy
Parser
Enums§
- Address
Kind - How a datasource is backed. Only
Literalyields a physical address that can be joined against externally-observed state;Templatedaddresses resolve at run time and are surfaced raw rather than silently dropped. - Edge
Reason - Limit
Kind - Parse
Error - Persist
Mode - Resolve
Error - Rule
Constants§
- MAX_
NESTING_ DEPTH - The deepest parse tree
parse_boundedaccepts. The deepest model in the repository reaches 48; a level of nested expression costs about 5-6, so this admits about 40 nested parens/calls/cases (125 nested types) while keeping every recursive walk downstream (the PyO3 conversion, Python’s tree conversion and hydration) inside its stack. - NESTING_
LIMIT_ MESSAGE - Leads the message of every nesting-limit error; Python matches on it.
Functions§
- build_
edges - Build edges from a directory graph
- collect_
preql_ files - Collect .preql files in a directory, optionally recursing into subdirectories.
- enumerate_
covers _enumerate_covers: the level-order obligation walk. Returns the emitted covers (as node names, in emission order) and which budget truncated the walk, if any.- parse_
bounded - Parse
textas a Trilogy file, rejecting input nested deeper thanMAX_NESTING_DEPTHwith an ordinary parse error rather than recursing on. - parse_
file - parse_
imports - process_
directory_ with_ imports - Process files in a directory, discovering transitive imports
- rule_
calls - How many rule calls a parse of
textmakes, orNonewhen it makes more thanmax_calls. Parse errors other than the call limit are returned.