enumCursorOption
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.
$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
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CursorRule packages/sql-semantics-postgres/src/Lowering/Manipulation/CursorRule.php:37
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CursorRule packages/sql-semantics-postgres/src/Lowering/Manipulation/CursorRule.php:38
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CursorRule packages/sql-semantics-postgres/src/Lowering/Manipulation/CursorRule.php:39
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CursorRule packages/sql-semantics-postgres/src/Lowering/Manipulation/CursorRule.php:40
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CursorRule packages/sql-semantics-postgres/src/Lowering/Manipulation/CursorRule.php:41
- class-const SqlSemantics\Platform\PostgreSql\Rules\Manipulation\CursorFacts::declare() packages/sql-semantics-postgres/src/Rules/Manipulation/CursorFacts.php:36
- class-const SqlSemantics\Platform\PostgreSql\Rules\Manipulation\CursorFacts::declare() packages/sql-semantics-postgres/src/Rules/Manipulation/CursorFacts.php:36
- class-const SqlSemantics\Platform\PostgreSql\Rules\Manipulation\CursorFacts::declare() packages/sql-semantics-postgres/src/Rules/Manipulation/CursorFacts.php:39
- class-const SqlSemantics\Platform\PostgreSql\Rules\Manipulation\CursorFacts::declare() packages/sql-semantics-postgres/src/Rules/Manipulation/CursorFacts.php:39
- class-const SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Cursor\DeclareCursor::__construct() packages/sql-semantics-postgres/src/Statement/Manipulation/Cursor/DeclareCursor.php:50