Skip to main content

Module migration

Module migration 

Source
Expand description

Schema migration statement generation.

Structs§

MigrationStatement
A migration step pairing a DDL Statement with the [Schema] it applies against.

Functions§

generate_migration
Generates the SQL [Migration] for a schema diff in the dialect named by capability.sql. PostgreSQL gets one batch; other dialects get breakpoint markers so drivers can execute one statement at a time.