karenina.storage.generated_models¶
generated_models
¶
Auto-generated SQLAlchemy models from Pydantic schemas.
This module uses the PydanticSQLAlchemyMapper to automatically generate the VerificationResultModel from the VerificationResult Pydantic class. This eliminates manual column definition and ensures the schema stays in sync with the domain model.
Classes¶
Functions¶
get_column_names
¶
Get all column names from the generated model.
Useful for debugging and introspection.
Source code in src/karenina/storage/generated_models.py
get_indexed_columns
¶
Get column names that have individual indexes.
Useful for debugging and introspection.
Source code in src/karenina/storage/generated_models.py
print_schema_info
¶
Print schema information for debugging.
Shows all columns, their types, and indexes.