src/dazzle_back/runtime/tenant_isolation.py¶
Generated: 2026-03-30T04:38:48.563872+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_back
Purpose¶
Tenant schema context — per-request schema routing via context vars.
The middleware sets the current tenant schema, and pg_backend.connection() reads it to SET search_path on each connection lease.
Key Exports¶
get_current_tenant_schemaset_current_tenant_schema
Dependencies¶
Imports¶
contextvars.ContextVarcontextvars.Token
Event Interactions¶
None detected.
Invariants and Assumptions¶
No invariants documented.
Tests¶
tests/integration/test_runtime_e2e.pytests/integration/test_runtime_pipeline.pytests/unit/test_runtime_test_routes.pytests/unit/test_runtime_services.pytests/unit/test_runtime_mcp_tools.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.