Expand description
Migration support foundations.
Structs§
- AddColumn
- Add a new column to an existing table.
- AddForeign
Key - Add a foreign key to an existing table.
- Alter
Column - Alter an existing column by comparing the previous and desired snapshots.
- Column
Snapshot - Snapshot of a table column, aligned with the code-first metadata already
defined in
sql-orm-core. - Create
Index - Create a missing index on an existing table.
- Create
Schema - Create a missing SQL Server schema.
- Create
Table - Create a table from its full snapshot.
- Drop
Column - Drop an existing column from a table.
- Drop
Foreign Key - Drop a foreign key from an existing table.
- Drop
Index - Drop an index from an existing table.
- Drop
Schema - Drop a SQL Server schema that no longer exists in the model.
- Drop
Table - Drop a table by schema and name.
- Foreign
KeySnapshot - Snapshot of a foreign key, including referenced target and referential actions.
- Index
Column Snapshot - Snapshot of a column inside an index definition.
- Index
Snapshot - Snapshot of an index, including the participating columns and sort order.
- Migration
Engine - Placeholder migration engine marker.
- Migration
Entry - Migration
Scaffold - Model
Snapshot - Serializable model snapshot shape used by future migration history artifacts.
- Rename
Column - Rename an existing column in a table without recreating it.
- Rename
Table - Rename an existing table inside the same schema without recreating it.
- Schema
Snapshot - Snapshot of a SQL Server schema and the tables currently modeled inside it.
- Table
Snapshot - Snapshot of a SQL Server table with the minimum structural information needed for the first migration diff passes.
Enums§
- Migration
Operation - Ordered migration operations emitted by the diff engine.
Constants§
Functions§
- build_
database_ downgrade_ script - build_
database_ update_ script - create_
migration_ scaffold - create_
migration_ scaffold_ with_ snapshot - diff_
column_ operations - Computes additive/removal/basic-alteration column operations for tables present
in both snapshots. Table creation/deletion remains the responsibility of
diff_schema_and_table_operations. - diff_
relational_ operations - Computes additive/removal operations for indexes and foreign keys in tables
present in both snapshots. Table creation/deletion remains the responsibility
of
diff_schema_and_table_operations. - diff_
schema_ and_ table_ operations - Computes the minimum stage-7 diff for schema and table creation/deletion.
- latest_
migration - list_
migrations - read_
latest_ model_ snapshot - read_
model_ snapshot - write_
migration_ down_ sql - write_
migration_ up_ sql - write_
model_ snapshot