Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

test lockForUpdate laravel

DB::transaction(function () {	echo 1;	User::where('id', 33)->lockForUpdate()->get();	echo 2;	sleep(10);});
Source by www.programmersought.com #
 
PREVIOUS NEXT
Tagged: #test #lockForUpdate #laravel
ADD COMMENT
Topic
Name
7+8 =