enum ValueFunctionKind: string
Public API: explicitly declared with @visibility public.

The SQL-standard functions written as a bare keyword.

Mirrors PostgreSQL's SQLValueFunctionOp, plus SYSTEM_USER, which the server turns into a call of pg_catalog.system_user(). CURRENT_ROLE and CURRENT_USER, and USER, are distinct spellings the server keeps apart. Source: https://www.postgresql.org/docs/17/functions-datetime.html#FUNCTIONS-DATETIME-CURRENT, https://www.postgresql.org/docs/17/functions-info.html#FUNCTIONS-INFO-SESSION.

Reading the type of CURRENT_DATEdoctest
\SqlSemantics\Platform\PostgreSql\Statement\Invocation\Syntax\ValueFunctionKind::CurrentDate->builtin() // => \SqlSemantics\Platform\PostgreSql\Statement\Type\Descriptor\Builtin::Date

Cases§

case CurrentDate = 'CURRENT_DATE'
case CurrentTime = 'CURRENT_TIME'
case CurrentTimestamp = 'CURRENT_TIMESTAMP'
case Localtime = 'LOCALTIME'
case Localtimestamp = 'LOCALTIMESTAMP'
case CurrentRole = 'CURRENT_ROLE'
case CurrentUser = 'CURRENT_USER'
case SessionUser = 'SESSION_USER'
case SystemUser = 'SYSTEM_USER'
case User = 'USER'
case CurrentCatalog = 'CURRENT_CATALOG'
case CurrentSchema = 'CURRENT_SCHEMA'

Methods§

public function nullable(): bool

Tells whether the result can be NULL: CURRENT_SCHEMA when no schema of the path exists, SYSTEM_USER for a session that was not authenticated.

Returns

bool
Called from 1
Calls 2

Test cases 9§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 3
Other tests reaching this symbol 6

Relations§

Method calls 3
Constant reads 16
Type declarations 1