enumRowSpelling
enum RowSpelling
Public API: explicitly declared with
@visibility public.How a row constructor is written, as PostgreSQL's CoercionForm of a RowExpr records it.
Source: https://www.postgresql.org/docs/17/sql-expressions.html#SQL-SYNTAX-ROW-CONSTRUCTORS.
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT (1, 2)');
$query->field(0)->expression->spelling // => \SqlSemantics\Platform\PostgreSql\Statement\Expression\Constructor\RowSpelling::ImplicitCases§
case ExplicitROW(…), with any number of fields.
case Implicit(a, b, …), with at least two fields.
Test cases 8§
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 7
ConstructorRuleTest::testRowLowersTheRowOfOverlapscallsExpressionsTest::testRowConstructorKeepsTheSpellingcallsClauseRuleTest::testGroupingTermsFlattensAnImplicitRowInParenthesescallsRowConstructorTest::testRejectsAnImplicitRowOfOneFieldcallsRowConstructorTest::testRenderWritesBothSpellingscallsOverlapsTest::testDeriveScalarIsBooleanAndNullableWithANullFieldcallsOverlapsTest::testRenderWritesOverlapscalls
Relations§
Constant reads 5
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Expression\ConstructorRule::row() packages/sql-semantics-postgres/src/Lowering/Expression/ConstructorRule.php:56
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\ClauseRule::groupingTerms() packages/sql-semantics-postgres/src/Lowering/Query/ClauseRule.php:104
- class-const SqlSemantics\Platform\PostgreSql\Statement\Expression\Constructor\RowConstructor::__construct() packages/sql-semantics-postgres/src/Statement/Expression/Constructor/RowConstructor.php:53
- class-const SqlSemantics\Platform\PostgreSql\Statement\Expression\Constructor\RowConstructor::__construct() packages/sql-semantics-postgres/src/Statement/Expression/Constructor/RowConstructor.php:56
- class-const SqlSemantics\Platform\PostgreSql\Statement\Expression\Constructor\RowConstructor::render() packages/sql-semantics-postgres/src/Statement/Expression/Constructor/RowConstructor.php:87