enumLockMode
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.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('LOCK t IN SHARE ROW EXCLUSIVE MODE');
$operation->statement->mode // => \SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\LockMode::ShareRowExclusiveCases§
case RowExclusive = '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
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\MaintenanceRule packages/sql-semantics-postgres/src/Lowering/Utility/MaintenanceRule.php:59
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\MaintenanceRule packages/sql-semantics-postgres/src/Lowering/Utility/MaintenanceRule.php:60
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\MaintenanceRule packages/sql-semantics-postgres/src/Lowering/Utility/MaintenanceRule.php:61
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\MaintenanceRule packages/sql-semantics-postgres/src/Lowering/Utility/MaintenanceRule.php:62
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\MaintenanceRule packages/sql-semantics-postgres/src/Lowering/Utility/MaintenanceRule.php:63
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\MaintenanceRule packages/sql-semantics-postgres/src/Lowering/Utility/MaintenanceRule.php:64
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\MaintenanceRule packages/sql-semantics-postgres/src/Lowering/Utility/MaintenanceRule.php:65
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\MaintenanceRule packages/sql-semantics-postgres/src/Lowering/Utility/MaintenanceRule.php:66
- class-const SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\Lock::effectiveMode() packages/sql-semantics-postgres/src/Statement/Utility/Maintenance/Lock.php:59
Type declarations 2
- type SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\Lock packages/sql-semantics-postgres/src/Statement/Utility/Maintenance/Lock.php:49
- type SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\Lock packages/sql-semantics-postgres/src/Statement/Utility/Maintenance/Lock.php:57