Skip to content

src/dazzle_back/runtime/relation_loader.py

Generated: 2026-03-30T04:38:47.939311+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Relation loader for nested data fetching.

Handles loading related entities and building nested response objects.

Key Exports

  • RelationInfo
  • RelationRegistry
  • RelationLoader
  • build_foreign_key_constraint
  • get_foreign_key_constraints
  • get_foreign_key_indexes
  • is_to_one
  • is_to_many
  • register
  • get_relations
  • get_relation
  • has_relation
  • from_entities
  • load_relations
  • build_join_sql
  • parse_joined_row

Dependencies

Imports

  • __future__.annotations
  • dataclasses.dataclass
  • dataclasses.field
  • typing.TYPE_CHECKING
  • typing.Any
  • dazzle_back.runtime.query_builder.quote_identifier
  • dazzle_back.specs.entity.EntitySpec
  • dazzle_back.specs.entity.RelationSpec

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/integration/test_runtime_e2e.py
  • tests/integration/test_runtime_pipeline.py
  • tests/unit/test_runtime_test_routes.py
  • tests/unit/test_runtime_services.py
  • tests/unit/test_runtime_mcp_tools.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.