Postgres module

schema_target

procedure · 1 overloadsince 0.27.0Source

Picks (and builds when it is time) the schema database for the migrations in folder. db is connected to the server's own database and config is how it was reached.

schema_target :: (
    state: *Schema_Databases,
    db: *Connection,
    config: Config,
    folder: string
) -> (Schema_Target, problem: string)

Picks (and builds when it is time) the schema database for the migrations in folder. db is connected to the server's own database and config is how it was reached.

Parameters

state: *Schema_Databases
what earlier calls learned; updated here.
db: *Connection
a connection to the server's own database.
config: Config
how db was reached; a database that gets built is connected to the same way.
folder: string
the project's migrations folder.

Returns

problem: string

See also