Postgres module

migrate_reporting

procedure · 1 overloadsince 0.27.0Source

migrate, and when a migration fails, failure says which one and where in its file.

migrate_reporting :: (
    c: *Connection,
    migrations: [] Migration,
    failure: *Migration_Failure,
    options := Migrate_Options.{}
) -> (applied: s64, Pg_Error)

migrate, and when a migration fails, failure says which one and where in its file.

Parameters

c: *Connection
the connection to migrate.
migrations: [] Migration
all the migrations, applied or not.
failure: *Migration_Failure
set when a migration fails.
options := Migrate_Options.{}
what to allow.

Returns

applied: s64

See also