File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 11
11
12
12
- [ ] Do we need handle methods? Or leave simple bool for transaction and callback only for session lock
13
13
- [ ] Should wait mode be blocking or non-blocking by default?
14
- - [ ] Should callback for session lock be at the end of the params?
14
+ - [ ] Should callback for session lock be at the end of the params (after optional ones) ?
15
15
16
16
## Introduction
17
17
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ public function acquireSessionLevelLock(
94
94
* ⚠️ Transaction-level advisory locks are strongly preferred whenever possible,
95
95
* as they are automatically released at the end of a transaction and are less error-prone.
96
96
* Use session-level locks only when transactional context is not available.
97
+ * @see acquireTransactionLevelLock() for preferred locking strategy.
97
98
*
98
99
* @param PDO $dbConnection Active database connection.
99
100
* @param PostgresLockKey $key Lock key to be acquired.
@@ -105,8 +106,6 @@ public function acquireSessionLevelLock(
105
106
* @template TReturn
106
107
*
107
108
* TODO: Cover with tests
108
- *@see acquireTransactionLevelLock() for preferred locking strategy.
109
- *
110
109
*/
111
110
public function withinSessionLevelLock (
112
111
PDO $ dbConnection ,
You can’t perform that action at this time.
0 commit comments