migration_generator
Generates migrations by walking two database states with typed diffs.
MigrationGenerator
¶
Walk state pairs → typed diffs → dependency-wired Migrations.
Source code in src/cloe_delta_table_manager/migrations/migration_generator.py
generate_migrations(current_state, desired_state, on_unsupported='fail', platform_options=None)
staticmethod
¶
Generate migrations to transition from current to desired state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
current_state
|
DatabaseState
|
The state the system is in. |
required |
desired_state
|
DatabaseState
|
The state the system should be in. |
required |
on_unsupported
|
OnUnsupported
|
|
'fail'
|
platform_options
|
AzureDatabricksOptions | None
|
Platform-specific render-time options (e.g.
Databricks |
None
|
Source code in src/cloe_delta_table_manager/migrations/migration_generator.py
print_migrations(migrations)
staticmethod
¶
Print the generated migrations in execution order (dependencies first).