Postgres module

dotenv_database_url

procedure · 1 overloadsince 0.27.0Source

The database URL the project's .env file gives: JACKET_DATABASE_URL, else DATABASE_URL. Empty when there is no file or neither is assigned.

dotenv_database_url :: (root: string) -> string

The database URL the project's .env file gives: JACKET_DATABASE_URL, else DATABASE_URL. Empty when there is no file or neither is assigned.

Parameters

root: string
the project folder that holds .env.

Returns

string

See also