The sqlpage.environment_variable function

Introduced in SQLPage 0.11.0.

Returns the value of the given environment variable.

Example

SELECT 'text' AS component;
SELECT 'The value of the HOME environment variable is ' AS contents;
SELECT sqlpage.environment_variable('HOME') as contents, true as code;

Parameters

name

The name of the environment variable to read. Must be a literal string.