classXmlConcat
final class XmlConcat
implements Scalar, OutputNaming
uses Snapshot
Public API: explicitly declared with
@visibility public.XMLCONCAT (values): XML values concatenated.
Mirrors PostgreSQL's XmlExpr of kind IS_XMLCONCAT. Rule: PG-XMLCONCAT-001. Facts: xml; NULL values are omitted, so the NULL rule is PG-COALESCING-NULL-001. The result column is named xmlconcat. Source: https://www.postgresql.org/docs/17/functions-xml.html#FUNCTIONS-PRODUCING-XML-XMLCONCAT. Status: Implemented.
(new \SqlSemantics\Platform\PostgreSql\Statement\Invocation\Xml\XmlConcat([new \SqlSemantics\Platform\PostgreSql\Statement\Literal\NullLiteral()]))->outputName()->value // => 'xmlconcat'Properties§
public non-empty-list<Scalar> $valuesMethods§
public function __construct(list<Scalar> $values)Parameters
$values | list<Scalar> | The values in order; at least one |
Calls 2
- static-call Check::listOf() line 46
- class-const Scalar::class() line 46
public function outputName(): NameNames an unaliased result column.
Returns
Test cases 1
public function deriveScalar(Derivation $derivation, Environment $environment): ScalarFactDerives the values, the type and the NULL fact.
Parameters
$derivation | Derivation | |
$environment | Environment |
Returns
Calls 6
- method-call Derivation::scalar() line 64
- new ScalarFact line 67
- new Known line 67
- class-const Builtin::Xml() line 67
- method-call Coalescing::nullability() line 67
- new Coalescing line 67
public function render(Output $out): voidWrites XMLCONCAT with the values.
Parameters
$out | Output |
Test cases 1
Calls 1
- method-call Output::keyword() line 75
Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.