Postgres module

propose_migration

procedure · 1 overloadsince 0.27.0Source

Compares the structs with the catalog and writes the SQL that would bring the migrated schema to what the structs say. See docs/postgres/diff.md for what it covers.

propose_migration :: (
    catalog: Catalog,
    description: Schema_Description
) -> (Migration_Proposal, problem: string)

Compares the structs with the catalog and writes the SQL that would bring the migrated schema to what the structs say. See docs/postgres/diff.md for what it covers.

Parameters

catalog: Catalog
the migrated schema.
description: Schema_Description
the structs and enums read from the schema file.

Returns

problem: string

See also