enumXmlColumnOptionKind
enum XmlColumnOptionKind: string
Public API: explicitly declared with
@visibility public.The kinds of column options of XMLTABLE.
An option written as an identifier followed by a value is kept as Named with its word: PostgreSQL reads path (before release 17 PATH is no keyword) and default written so as those options and rejects any other word. Source: https://www.postgresql.org/docs/17/functions-xml.html#FUNCTIONS-XML-PROCESSING-XMLTABLE.
[\SqlSemantics\Platform\PostgreSql\Statement\Relation\Xml\XmlColumnOptionKind::Path->valued(), \SqlSemantics\Platform\PostgreSql\Statement\Relation\Xml\XmlColumnOptionKind::NotNull->valued()] // => [true, false]Cases§
case Default = 'DEFAULT'case Path = 'PATH'case NotNull = 'NOT NULL'case Null = 'NULL'case Named = ''Methods§
public function valued(): boolTells whether the option is written with a value.
Returns
boolTest cases 1
Called from 1
Calls 5
- class-const XmlColumnOptionKind::Default() line 33
- class-const XmlColumnOptionKind::Path() line 33
- class-const XmlColumnOptionKind::Named() line 33
- class-const XmlColumnOptionKind::NotNull() line 34
- class-const XmlColumnOptionKind::Null() line 34
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 1
Relations§
Method calls 1
Constant reads 12
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\TableFunctionRule::options() packages/sql-semantics-postgres/src/Lowering/Query/TableFunctionRule.php:144
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\TableFunctionRule::options() packages/sql-semantics-postgres/src/Lowering/Query/TableFunctionRule.php:145
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\TableFunctionRule::options() packages/sql-semantics-postgres/src/Lowering/Query/TableFunctionRule.php:146
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\TableFunctionRule::options() packages/sql-semantics-postgres/src/Lowering/Query/TableFunctionRule.php:147
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\TableFunctionRule::options() packages/sql-semantics-postgres/src/Lowering/Query/TableFunctionRule.php:148
- class-const SqlSemantics\Platform\PostgreSql\Rules\Resolution\TableFunctionShapes::options() packages/sql-semantics-postgres/src/Rules/Resolution/TableFunctionShapes.php:95
- class-const SqlSemantics\Platform\PostgreSql\Rules\Resolution\TableFunctionShapes::options() packages/sql-semantics-postgres/src/Rules/Resolution/TableFunctionShapes.php:96
- class-const SqlSemantics\Platform\PostgreSql\Rules\Resolution\TableFunctionShapes::options() packages/sql-semantics-postgres/src/Rules/Resolution/TableFunctionShapes.php:97
- class-const SqlSemantics\Platform\PostgreSql\Rules\Resolution\TableFunctionShapes::options() packages/sql-semantics-postgres/src/Rules/Resolution/TableFunctionShapes.php:97
- class-const SqlSemantics\Platform\PostgreSql\Rules\Resolution\TableFunctionShapes::options() packages/sql-semantics-postgres/src/Rules/Resolution/TableFunctionShapes.php:98
- class-const SqlSemantics\Platform\PostgreSql\Rules\Resolution\TableFunctionShapes::options() packages/sql-semantics-postgres/src/Rules/Resolution/TableFunctionShapes.php:100
- class-const SqlSemantics\Platform\PostgreSql\Statement\Relation\Xml\XmlColumnOption::__construct() packages/sql-semantics-postgres/src/Statement/Relation/Xml/XmlColumnOption.php:42