Postgres module

database_url

procedure · 1 overloadsince 0.27.0Source

The compile-time database's URL: JACKET_DATABASE_URL, else DATABASE_URL, from the environment; when it has neither, the same two names in the project's .env file. Empty when there is none.

database_url :: (root: string) -> string

The compile-time database's URL: JACKET_DATABASE_URL, else DATABASE_URL, from the environment; when it has neither, the same two names in the project's .env file. Empty when there is none.

Parameters

root: string
the project root, where the .env file is looked for.

Returns

string

See also