-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathLockBehavior.php
More file actions
44 lines (39 loc) · 706 Bytes
/
LockBehavior.php
File metadata and controls
44 lines (39 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
declare(strict_types=1);
namespace Cycle\Database\Query\Enum;
/**
* Lock wait behavior when row is already locked.
*/
enum LockBehavior
{
/**
* Default. Block until lock is released.
*
* Supports:
* - MSSQL +
* - MySQL +
* - SQLITE -
* - PostgreSQL +
*/
case Wait;
/**
* Fail immediately if row is locked.
*
* Supports:
* - MSSQL +
* - MySQL +
* - SQLITE -
* - PostgreSQL +
*/
case NoWait;
/**
* Skip locked rows, return only unlocked. Useful for job queues.
*
* Supports:
* - MSSQL +
* - MySQL +
* - SQLITE -
* - PostgreSQL +
*/
case SkipLocked;
}