enumLockedRowAction
enum LockedRowAction
Public API: explicitly declared with
@visibility public.What a locking read does with a row another transaction has locked: NOWAIT or SKIP LOCKED.
Without an action the read waits for the lock. Source: https://dev.mysql.com/doc/refman/8.4/en/innodb-locking-reads.html.
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT a FROM t FOR UPDATE SKIP LOCKED');
$query->statement->locking[0]->action // => \SqlSemantics\Platform\MySql\Statement\Query\Locking\LockedRowAction::SkipLockedCases§
case Nowaitcase SkipLockedTest 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 4
- class-const SqlSemantics\Platform\MySql\Lowering\Query\Shared\TailRule packages/sql-semantics-mysql/src/Lowering/Query/Shared/TailRule.php:52
- class-const SqlSemantics\Platform\MySql\Lowering\Query\Shared\TailRule packages/sql-semantics-mysql/src/Lowering/Query/Shared/TailRule.php:52
- class-const SqlSemantics\Platform\MySql\Statement\Query\Locking\LockingClause::render() packages/sql-semantics-mysql/src/Statement/Query/Locking/LockingClause.php:89
- class-const SqlSemantics\Platform\MySql\Statement\Query\Locking\LockingClause::render() packages/sql-semantics-mysql/src/Statement/Query/Locking/LockingClause.php:91