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.

Reading the document passeddoctest
$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 // => true

Properties§

public Scalar $document

Methods§

public function __construct(public Scalar $document)

Parameters

$documentScalarThe XML document
Calls 3
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives the document.

Parameters

$derivationDerivation
$environmentEnvironment
Test cases 1
Calls 1
public function render(Output $out): void

Writes PASSING and the document.

Parameters

$outOutput
Test cases 1
Calls 1

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