enum FetchMovement
Public API: explicitly declared with @visibility public.

Where FETCH or MOVE positions the cursor, as written.

Mirrors the direction and howMany of PostgreSQL's FetchStmt: NEXT and a missing direction are FORWARD 1, PRIOR is BACKWARD 1, FIRST is ABSOLUTE 1, LAST is ABSOLUTE -1, a count alone is FORWARD count and ALL is FORWARD ALL. The spellings are kept because they are different requests of the grammar. The counted movements take a count. Source: https://www.postgresql.org/docs/17/sql-fetch.html.

Reading a movementdoctest
$fetch = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('FETCH BACKWARD 5 FROM c');
    [$fetch->statement->movement, $fetch->statement->count->magnitude->digits] // => [\SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Cursor\FetchMovement::BackwardCount, '5']

Cases§

case Implicit
case Next
case Prior
case First
case Last
case Absolute
case Relative
case Count
case All
case Forward
case ForwardCount
case ForwardAll
case Backward
case BackwardCount
case BackwardAll

Methods§

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 2
Constant reads 16
Type declarations 1