Skip to main content

run_generate

Function run_generate 

Source
pub fn run_generate(
    registry: &SchemaRegistry,
    migrations_dir: &str,
    name: &str,
    dialect: Dialect,
) -> Result<Option<String>, DbCoreError>
Expand description

Generates a migration file from the diff between the latest snapshot and the current schema.

ยงErrors

Returns DbCoreError if reading/writing the snapshot, journal, or migration file fails.