enum LockStrength
Public API: explicitly declared with @visibility public.

The lock a locking read takes: FOR UPDATE, FOR SHARE, or the older LOCK IN SHARE MODE.

LOCK IN SHARE MODE takes a shared lock like FOR SHARE but accepts no table list and no NOWAIT or SKIP LOCKED. Source: https://dev.mysql.com/doc/refman/8.4/en/innodb-locking-reads.html.

Reading the strength of a locking readdoctest
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT a FROM t FOR SHARE');
    $query->statement->locking[0]->strength // => \SqlSemantics\Platform\MySql\Statement\Query\Locking\LockStrength::Share

Cases§

case Update
case Share
case ShareMode

Test cases 18§

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 17

Relations§

Constant reads 10
Type declarations 1