Integrating LockBox to DBTransaction - introducing lockMulti#14
Integrating LockBox to DBTransaction - introducing lockMulti#14CMCDragonkai merged 4 commits intostagingfrom
LockBox to DBTransaction - introducing lockMulti#14Conversation
👇 Click on the image for a new way to code review
Legend |
e727e26 to
3c0bf55
Compare
3c0bf55 to
0582b22
Compare
|
I have to remove See: MatrixAI/js-db#19 (comment) The core problem is that the Alternatively, Something like this: public lockMany(...requests: Array<LockRequest<L>>): Array<[ToString, ResourceAcquire<L>]> {
return [];
} |
LockBox should be LockLockBox integration into DBTransaction - introducing lockMulti
LockBox integration into DBTransaction - introducing lockMultiLockBox to DBTransaction - introducing lockMulti
18c9c49 to
afe9b5e
Compare
…ion of keys as separate resources * Defaulted lock type to `write` for `RWLockReader` and `RWLockWriter` BREAKING CHANGE: `LockRequest` is now `MultiLockRequest`
afe9b5e to
055bd43
Compare
LockBox to DBTransaction - introducing lockMultiLockBox to DBTransaction - introducing lockMulti
|
This will update to 3.0.0. |

Description
As well as defaulting some types, this should simplify it usage inside
js-dbwhere we are usingLockBoxto enable PCC locking for the transactions.Issues Fixed
Tasks
Lockableas a default type for all the generic types depending on it[ ] 2. Extend the- done on user sideLockRequesttype so thatstringcan be taken, and if so, it is assumed that this is just aLocknormallyLockBox, where we return a collection ofResourceAcquire<L>instead of a single resource acquisition, this is useful forDBTransactionas it has to manage locking imperativelyLockRequesttype toMultiLockRequest, this breaks some type signatures, so this is a major upgradeFinal checklist