enumKeywordFunction
enum KeywordFunction: string
Public API: explicitly declared with
@visibility public.A function whose name is a keyword the grammar lets be called with plain arguments.
SUBSTRING(...) and OVERLAY(...) with a plain argument list call the function of that name along the search path; JSON_OBJECT(...) with a plain argument list calls the legacy pg_catalog.json_object. Source: https://www.postgresql.org/docs/17/functions-string.html, https://www.postgresql.org/docs/17/functions-json.html.
\SqlSemantics\Platform\PostgreSql\Statement\Invocation\Syntax\KeywordFunction::JsonObject->catalogOnly() // => trueCases§
case Substring = 'SUBSTRING'case Overlay = 'OVERLAY'case JsonObject = 'JSON_OBJECT'Methods§
public function catalogOnly(): boolTells whether the server calls the function qualified with pg_catalog.
Returns
boolCalled from 2
- method-call SqlSemantics\Platform\PostgreSql\Statement\Invocation\Syntax\KeywordCall::deriveScalar() packages/sql-semantics-postgres/src/Statement/Invocation/Syntax/KeywordCall.php:81
- method-call SqlSemantics\Platform\PostgreSql\Statement\Invocation\Syntax\KeywordCall::deriveScalar() packages/sql-semantics-postgres/src/Statement/Invocation/Syntax/KeywordCall.php:86
Calls 1
- class-const KeywordFunction::JsonObject() line 30
Test cases 6§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 5
KeywordCallTest::testDeriveScalarLeavesNamedArgumentsToTheRoutinecallsKeywordCallTest::testDeriveScalarSearchesThePathForSubstringcallsKeywordCallTest::testOutputNameIsTheFunctionNamecallsKeywordCallTest::testRejectsJsonObjectWithoutArgumentscallsKeywordCallTest::testRenderWritesTheKeywordAndTheArgumentscalls
Relations§
Method calls 2
- method-call SqlSemantics\Platform\PostgreSql\Statement\Invocation\Syntax\KeywordCall::deriveScalar() packages/sql-semantics-postgres/src/Statement/Invocation/Syntax/KeywordCall.php:81
- method-call SqlSemantics\Platform\PostgreSql\Statement\Invocation\Syntax\KeywordCall::deriveScalar() packages/sql-semantics-postgres/src/Statement/Invocation/Syntax/KeywordCall.php:86
Constant reads 4
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\JsonRule::creation() packages/sql-semantics-postgres/src/Lowering/Invocation/JsonRule.php:99
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\TextRule::expression() packages/sql-semantics-postgres/src/Lowering/Invocation/TextRule.php:84
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\TextRule::expression() packages/sql-semantics-postgres/src/Lowering/Invocation/TextRule.php:87
- class-const SqlSemantics\Platform\PostgreSql\Statement\Invocation\Syntax\KeywordCall::__construct() packages/sql-semantics-postgres/src/Statement/Invocation/Syntax/KeywordCall.php:56