Postgres module

schema_source

procedure · 1 overloadsince 0.27.0Source

The text of db/schema.jai for a catalog made from migrations with this schema hash, or a problem such as a column that cannot be a field name. Laid out as the formatter would.

schema_source :: (
    catalog: Catalog,
    hash: string
) -> (source: string, problem: string)

The text of db/schema.jai for a catalog made from migrations with this schema hash, or a problem such as a column that cannot be a field name. Laid out as the formatter would.

Parameters

catalog: Catalog
the migrated schema.
hash: string
its schema hash, written into the file.

Returns

source: string
problem: string

See also