Reads the catalog of the migrations' schema database (see schema_databases.jai) on the server
config names, building it first when there is none, and returns the text of db/schema.jai;
or what went wrong. Runs on a fiber, like every call that talks to the server.
- config: the server to build the migrations' schema database on.
- migrations_folder: the folder of migration
.sqlfiles.
generate_schema :: (
config: Config,
migrations_folder: string
) -> (source: string, problem: string)
Reads the catalog of the migrations' schema database (see schema_databases.jai) on the server
config names, building it first when there is none, and returns the text of db/schema.jai;
or what went wrong. Runs on a fiber, like every call that talks to the server.
Parameters
- config: Config
- the server to build the migrations' schema database on.
- migrations_folder: string
- the folder of migration
.sqlfiles.
Returns
- source: string
- problem: string