Postgres module

dotenv_value

procedure · 1 overloadsince 0.27.0Source

The value key gets in the text of a .env file, and whether it is assigned at all. The last assignment wins. The result lives in temporary storage.

dotenv_value :: (text: string, key: string) -> (string, bool)

The value key gets in the text of a .env file, and whether it is assigned at all. The last assignment wins. The result lives in temporary storage.

Parameters

text: string
the contents of a .env file.
key: string
the variable name.

Returns

string
bool

See also