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.

Reading the holdability of a cursordoctest
$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::With

Cases§

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
Type declarations 1