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

The table-level lock modes of LOCK.

Mirrors the eight lock modes of PostgreSQL, from the weakest to the strongest. The value is the keyword spelling. Source: https://www.postgresql.org/docs/17/explicit-locking.html#LOCKING-TABLES, https://www.postgresql.org/docs/17/sql-lock.html.

Reading the mode of a LOCKdoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('LOCK t IN SHARE ROW EXCLUSIVE MODE');
    $operation->statement->mode // => \SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\LockMode::ShareRowExclusive

Cases§

case AccessShare = 'ACCESS SHARE'
case RowShare = 'ROW SHARE'
case RowExclusive = 'ROW EXCLUSIVE'
case ShareUpdateExclusive = 'SHARE UPDATE EXCLUSIVE'
case Share = 'SHARE'
case ShareRowExclusive = 'SHARE ROW EXCLUSIVE'
case Exclusive = 'EXCLUSIVE'
case AccessExclusive = 'ACCESS EXCLUSIVE'

Test cases 3§

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 2

Relations§

Constant reads 9
Type declarations 2