|
CollectionFind::lockExclusiveExecute operation with EXCLUSIVE LOCK Description
public mysql_xdevapi\CollectionFind mysql_xdevapi\CollectionFind::lockExclusive(int
$lock_waiting_option = ?)
Locks the document exclusively.
As long as the document is locked,
other transactions can't update the document,
use To avoid concurrency problems, it makes sense to use this function with the mysql_xdevapi\Collection::modify method. Essentially, this function uses row locks to serialise access to rows. Parameters
Return ValuesReturns a CollectionFind object that can be used for further processing. ExamplesExample #1 mysql_xdevapi\CollectionFind::lockExclusive example
|