enum CursorOption: string
Public API: explicitly declared with @visibility public.

An option written between the cursor name and CURSOR: BINARY, ASENSITIVE, INSENSITIVE, SCROLL or NO SCROLL.

Mirrors the CURSOR_OPT_* bits of PostgreSQL's DeclareCursorStmt. Every cursor of PostgreSQL is insensitive, so ASENSITIVE and INSENSITIVE change nothing but cannot be combined; SCROLL and NO SCROLL cannot be combined either. The value is the keyword sequence. Source: https://www.postgresql.org/docs/17/sql-declare.html.

Reading the options of a cursordoctest
$declare = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('DECLARE c BINARY NO SCROLL CURSOR FOR SELECT 1');
    $declare->statement->options // => [\SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Cursor\CursorOption::Binary, \SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Cursor\CursorOption::NoScroll]

Cases§

case Binary = 'BINARY'
case Asensitive = 'ASENSITIVE'
case Insensitive = 'INSENSITIVE'
case Scroll = 'SCROLL'
case NoScroll = 'NO SCROLL'

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§

Constant reads 10