Postgres module

find_project_root

procedure · 1 overloadsince 0.27.0Source

The folder that holds the project's files: from the file with the query, the nearest folder up the tree with a jacket.toml or the first folder of MIGRATIONS (db, by default); if there is none, that file's own folder. JACKET_PG_ROOT overrides it.

find_project_root :: (file: string) -> string

The folder that holds the project's files: from the file with the query, the nearest folder up the tree with a jacket.toml or the first folder of MIGRATIONS (db, by default); if there is none, that file's own folder. JACKET_PG_ROOT overrides it.

Parameters

file: string
the source file with the query.

Returns

string

See also