enumHoldability
enum Holdability: string
Public API: explicitly declared with
@visibility public.Whether a cursor outlives the transaction that created it: WITH HOLD or WITHOUT HOLD.
Mirrors the CURSOR_OPT_HOLD bit of PostgreSQL's DeclareCursorStmt; WITHOUT HOLD is also what a cursor without either clause is. The value is the first keyword. Source: https://www.postgresql.org/docs/17/sql-declare.html.
$declare = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('DECLARE c CURSOR WITH HOLD FOR SELECT 1');
$declare->statement->hold // => \SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Cursor\Holdability::WithCases§
case With = 'WITH'case Without = 'WITHOUT'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 2
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CursorRule::declare() packages/sql-semantics-postgres/src/Lowering/Manipulation/CursorRule.php:86
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CursorRule::declare() packages/sql-semantics-postgres/src/Lowering/Manipulation/CursorRule.php:87