Skip to content

src/dazzle_back/converters/entity_converter.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Entity converter - converts Dazzle IR EntitySpec to DNR BackendSpec EntitySpec.

This module handles the transformation of Dazzle's domain entities into DNR's framework-agnostic BackendSpec format.

Key Exports

  • convert_field
  • convert_entity
  • convert_entities

Dependencies

Imports

  • typing.Any
  • dazzle.core.ir
  • dazzle_back.specs.AccessAuthContext
  • dazzle_back.specs.AccessComparisonKind
  • dazzle_back.specs.AccessConditionSpec
  • dazzle_back.specs.AccessLogicalKind
  • dazzle_back.specs.AccessOperationKind
  • dazzle_back.specs.AccessPolicyEffect
  • dazzle_back.specs.AggregateFunctionKind
  • dazzle_back.specs.ArithmeticOperatorKind
  • dazzle_back.specs.AutoTransitionSpec
  • dazzle_back.specs.ComputedExprSpec
  • dazzle_back.specs.ComputedFieldSpec
  • dazzle_back.specs.DurationUnitKind
  • dazzle_back.specs.EntityAccessSpec
  • dazzle_back.specs.EntitySpec
  • dazzle_back.specs.FieldSpec
  • dazzle_back.specs.FieldType
  • dazzle_back.specs.InvariantComparisonKind
  • dazzle_back.specs.InvariantExprSpec

Event Interactions

None detected.

Invariants and Assumptions

  • Validates: Unknown computed expression type: {type(expr)}
  • Invariant Conversion

  • Validates: Unknown invariant expression type: {type(expr)}
  • Validates: Invalid ConditionExpr: no comparison, role_check, or logical operator

Tests

No related tests found.

Notes

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