Skip to content

src/dazzle_back/runtime/safe_casts.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Safe cast registry for Alembic type change migrations.

Maps (from_pg_type, to_pg_type) to USING clause templates. Casts in this registry are known to be lossless and can be applied automatically during auto-migration. Unknown casts are skipped with a warning.

Key Exports

  • is_safe_cast
  • get_using_clause

Dependencies

Imports

  • dazzle_back.runtime.query_builder.quote_identifier

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_safe_casts.py
  • 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

Notes

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