final class XmlRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\PostgreSql\Lowering". Code outside that scope must not name this declaration.

Lowers the SQL/XML functions.

Rule: PG-XML-LOWERING-001. Scope: the XML productions of func_expr_common_subexpr, xml_root_version, opt_xml_root_standalone, xml_attributes, xml_attribute_list, xml_attribute_el, xml_indent_option, xml_whitespace_option, xmlexists_argument, xml_passing_mech. Constructors: XmlConcat, XmlElement, XmlAttribute, XmlForest, XmlParse, XmlProcessingInstruction, XmlRoot, XmlSerialize, XmlExists, XmlPassing. BY REF and BY VALUE are accepted and ignored by the server (noise, see InvocationNoise). Termination: lists are flattened iteratively. Source: https://www.postgresql.org/docs/17/functions-xml.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function root(Form $form): XmlRoot

Private surface 6§

Implementation details, listed for orientation only.

private const STANDALONE = ['opt_xml_root_standalone:' => null, 'opt_xml_root_standalone: , STANDALONE_P Y…
private const INDENT = ['xml_indent_option:' => null, 'xml_indent_option: INDENT' => \SqlSemantics\Pla…
private const WHITESPACE = ['xml_whitespace_option:' => null, 'xml_whitespace_option: PRESERVE WHITESPACE_…
private const PASSING = ['xmlexists_argument: PASSING c_expr' => 1, 'xmlexists_argument: PASSING c_expr…
private const MECHANISMS = ['xml_passing_mech: BY REF_P', 'xml_passing_mech: BY VALUE_P']
private Lowering $lowering

Test cases 4§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 4

Relations§

Instantiated in 3
Method calls 3