classXmlPassing
final class XmlPassing
implements Clause
uses Snapshot
Public API: explicitly declared with
@visibility public.The PASSING clause of XMLEXISTS and XMLTABLE: the document the path is evaluated on.
The document is a primary expression (c_expr); an operand that would need parentheses there is rejected. BY REF and BY VALUE are accepted and ignored by the server, so they are not kept. Source: https://www.postgresql.org/docs/17/functions-xml.html#FUNCTIONS-XML-PREDICATES-XMLEXISTS.
$passing = new \SqlSemantics\Platform\PostgreSql\Statement\Invocation\Xml\XmlPassing(new \SqlSemantics\Platform\PostgreSql\Statement\Literal\NullLiteral());
$passing->document instanceof \SqlSemantics\Platform\PostgreSql\Statement\Literal\NullLiteral // => trueProperties§
public Scalar $documentMethods§
public function __construct(public Scalar $document)Parameters
$document | Scalar | The XML document |
Calls 3
- static-call Check::input() line 38
- method-call Precedence::primary() line 38
- new Precedence line 38
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives the document.
Parameters
$derivation | Derivation | |
$environment | Environment |
Test cases 1
Calls 1
- method-call Derivation::scalar() line 46
public function render(Output $out): voidWrites PASSING and the document.
Parameters
$out | Output |
Test cases 1
Calls 1
- method-call Output::keyword() line 54
Test cases 7§
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 4
Relations§
Instantiated in 1
Type declarations 3
- type SqlSemantics\Platform\PostgreSql\Lowering\Invocation\Invocations packages/sql-semantics-postgres/src/Lowering/Invocation/Invocations.php:121
- type SqlSemantics\Platform\PostgreSql\Lowering\Invocation\XmlRule packages/sql-semantics-postgres/src/Lowering/Invocation/XmlRule.php:206
- type SqlSemantics\Platform\PostgreSql\Statement\Invocation\Xml\XmlExists packages/sql-semantics-postgres/src/Statement/Invocation/Xml/XmlExists.php:41