projects
/
m6w6
/
pq-gateway
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
the lock is only for update
[m6w6/pq-gateway]
/
lib
/
pq
/
Gateway
/
Table
/
LockInterface.php
diff --git
a/lib/pq/Gateway/Table/LockInterface.php
b/lib/pq/Gateway/Table/LockInterface.php
index ff8e858fdafc81a3de135fd0bb6dcbc505457028..de64c57a806ff9a09eb17fbc5a1e9f9f46364cf4 100644
(file)
--- a/
lib/pq/Gateway/Table/LockInterface.php
+++ b/
lib/pq/Gateway/Table/LockInterface.php
@@
-4,7
+4,10
@@
namespace pq\Gateway\Table;
use \pq\Gateway\Row;
+/**
+ * Lazy row lock on update
+ */
interface LockInterface
{
- function
criteria
(Row $row, array &$where);
+ function
onUpdate
(Row $row, array &$where);
}