-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrating LockBox
to DBTransaction
- introducing lockMulti
#14
Conversation
👇 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 Lock
LockBox
integration into DBTransaction
- introducing lockMulti
LockBox
integration into DBTransaction
- introducing lockMulti
LockBox
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 lockMulti
LockBox
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-db
where we are usingLockBox
to enable PCC locking for the transactions.Issues Fixed
Tasks
Lockable
as a default type for all the generic types depending on it[ ] 2. Extend the- done on user sideLockRequest
type so thatstring
can be taken, and if so, it is assumed that this is just aLock
normallyLockBox
, where we return a collection ofResourceAcquire<L>
instead of a single resource acquisition, this is useful forDBTransaction
as it has to manage locking imperativelyLockRequest
type toMultiLockRequest
, this breaks some type signatures, so this is a major upgradeFinal checklist