src/dazzle_back/runtime/predicate_compiler.py¶
Generated: 2026-03-30T04:38:47.763741+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_back
Purpose¶
Predicate compiler — translates ScopePredicate trees into parameterised SQL.
The compiled SQL is a WHERE fragment (no leading WHERE keyword). Parameters
are returned as a plain list; positional %s placeholders are used
throughout so the result is compatible with any DB-API 2.0 driver.
Two mar...
Key Exports¶
UserAttrRefCurrentUserRefcompile_predicate
Dependencies¶
Imports¶
dataclasses.dataclasstyping.Anydazzle.core.ir.fk_graph.FKEdgedazzle.core.ir.fk_graph.FKGraphdazzle.core.ir.predicates.BoolCompositedazzle.core.ir.predicates.BoolOpdazzle.core.ir.predicates.ColumnCheckdazzle.core.ir.predicates.CompOpdazzle.core.ir.predicates.Contradictiondazzle.core.ir.predicates.ExistsCheckdazzle.core.ir.predicates.PathCheckdazzle.core.ir.predicates.ScopePredicatedazzle.core.ir.predicates.Tautologydazzle.core.ir.predicates.UserAttrCheckdazzle.core.ir.predicates.ValueRefdazzle_back.runtime.query_builder.quote_identifier
Event Interactions¶
None detected.
Invariants and Assumptions¶
- Validates: PathCheck.path must have at least 2 segments, got {path!r}
- Assert: len(predicate.children) == 1
- Validates: Unknown predicate type: {type(predicate)!r}
Tests¶
tests/unit/test_predicate_compiler.pytests/integration/test_runtime_e2e.pytests/integration/test_runtime_pipeline.pytests/unit/test_runtime_test_routes.pytests/unit/test_runtime_services.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.