Postgres module

read_migrations

procedure · 1 overloadsince 0.27.0Source

load_migrations for tools: the migrations, or a message saying what is wrong with the folder. relative_to is a file whose folder relative paths start at; empty for the working directory.

read_migrations :: (
    folder: string,
    relative_to := ""
) -> ([] Migration, problem: string)

load_migrations for tools: the migrations, or a message saying what is wrong with the folder. relative_to is a file whose folder relative paths start at; empty for the working directory.

Parameters

folder: string
the migrations folder.
relative_to := ""
a file whose folder relative paths start at; empty for the working directory.

Returns

problem: string

See also