classPositionalArgument
final class PositionalArgument
implements Argument
uses Snapshot
Public API: explicitly declared with
@visibility public.An argument passed by position: func_arg_expr: a_expr.
Source: https://www.postgresql.org/docs/17/sql-syntax-calling-funcs.html#SQL-SYNTAX-CALLING-FUNCS-POSITIONAL.
$argument = new \SqlSemantics\Platform\PostgreSql\Statement\Invocation\PositionalArgument(new \SqlSemantics\Platform\PostgreSql\Statement\Literal\NullLiteral());
[$argument->name(), $argument->value() instanceof \SqlSemantics\Platform\PostgreSql\Statement\Literal\NullLiteral] // => [null, true]Properties§
public Scalar $valueMethods§
public function __construct(public Scalar $value)Parameters
$value | Scalar | The value passed |
public function value(): ScalarAnswers the value passed.
Returns
Test cases 1
public function name(): ?Namepublic function deriveClause(Derivation $derivation, Environment $environment): voidDerives the value.
Parameters
$derivation | Derivation | |
$environment | Environment |
Test cases 1
Calls 1
- method-call Derivation::scalar() line 56
public function render(Output $out): voidTest cases 18§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
Other tests reaching this symbol 14
CallChecksTest::testArgumentsReportsNamingMistakescallsCallChecksTest::testMisuseReportsEveryClauseAPlainFunctionRejectscallsCallTypingTest::testCallDependsWhenAnotherSchemaIsSearchedFirstcallsCallTypingTest::testCallTypesAnExactCatalogMatchcallsFunctionCallTest::testDeriveScalarDependsOnAnUndeclaredRoutinecallsFunctionCallTest::testDeriveScalarDerivesTheClausescallsFunctionCallTest::testDeriveScalarTypesACatalogFunctioncallsFunctionCallTest::testRejectsArgumentsNextToTheStarcallsFunctionCallTest::testRejectsWithinGroupWithDistinctcallsFunctionCallTest::testRenderQuotesAnUnqualifiedCubeOrRollupcallsFunctionCallTest::testRenderWritesDistinctVariadicAndAnInnerOrderingcallsFunctionCallTest::testRenderWritesEveryPartInOrdercallsKeywordCallTest::testDeriveScalarSearchesThePathForSubstringcallsKeywordCallTest::testRenderWritesTheKeywordAndTheArgumentscalls