enumSortDirection
enum SortDirection: string
Public API: explicitly declared with
@visibility public.The direction written for a sort key.
No direction sorts ascending; the absence is kept as null by the sort item. Source: https://www.postgresql.org/docs/17/queries-order.html.
\SqlSemantics\Platform\PostgreSql\Statement\Query\SortDirection::Descending->value // => 'DESC'Cases§
case Ascending = 'ASC'case Descending = 'DESC'Test cases 7§
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 6
QueriesTest::testSortDirectionReadsDesccallsIndexRuleTest::testOptionsLowersTheOperatorClassParameterscallsWindowSpecificationTest::testRenderWritesTheSpecificationInParenthesescallsSortItemTest::testDeriveClauseDerivesTheSortKeycallsSortItemTest::testRejectsADirectionNextToAnOperatorcallsSortItemTest::testRenderWritesDirectionAndNullscalls
Relations§
Constant reads 2
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\ClauseRule::sortDirection() packages/sql-semantics-postgres/src/Lowering/Query/ClauseRule.php:158
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\ClauseRule::sortDirection() packages/sql-semantics-postgres/src/Lowering/Query/ClauseRule.php:159
Type declarations 4
- type SqlSemantics\Platform\PostgreSql\Lowering\Query\ClauseRule packages/sql-semantics-postgres/src/Lowering/Query/ClauseRule.php:153
- type SqlSemantics\Platform\PostgreSql\Lowering\Query\Queries packages/sql-semantics-postgres/src/Lowering/Query/Queries.php:74
- type SqlSemantics\Platform\PostgreSql\Statement\Query\SortItem packages/sql-semantics-postgres/src/Statement/Query/SortItem.php:50
- type SqlSemantics\Platform\PostgreSql\Statement\Table\Index\IndexElement packages/sql-semantics-postgres/src/Statement/Table/Index/IndexElement.php:55