Skip to content

src/dazzle_back/runtime/repository.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Repository — provides persistence layer for DNR Backend.

This module implements the repository pattern for PostgreSQL database access. Provides CRUD operations with advanced filtering, sorting, pagination, and relation loading.

Key Exports

  • ConstraintViolationError
  • Repository
  • RepositoryFactory
  • create
  • read
  • update
  • delete
  • list
  • exists
  • create_repository
  • create_all_repositories
  • get_repository

Dependencies

Imports

  • __future__.annotations
  • json
  • re
  • time
  • datetime.date
  • datetime.datetime
  • decimal.Decimal
  • typing.TYPE_CHECKING
  • typing.Any
  • typing.Generic
  • typing.TypeAlias
  • typing.TypeVar
  • uuid.UUID
  • pydantic.BaseModel
  • dazzle_back.runtime.query_builder.quote_identifier
  • dazzle_back.specs.entity.ComputedFieldSpec
  • dazzle_back.specs.entity.EntitySpec
  • dazzle_back.specs.entity.FieldType
  • dazzle_back.specs.entity.ScalarType
  • psycopg.errors

Event Interactions

None detected.

Invariants and Assumptions

  • Validates: No model found for entity: {entity.name}

Tests

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