Skip to content

Commit fbcdeea

Browse files
committed
DB transactions now follow the resource control ResourceAcquire and ResourceRelease types
* Provided `iterator` methods to `DB` and `DBTransaction` to enable transactional iterators * Remove `DB.withLocks` and `DB.transact` as advisory locking is now the responsibility of the user * Root sublevels have been created `data` and `transactions` * Transactions have isolation level and read-phenomena tests * New methods on DB: `iterator`, `clear`, `count`, `dump` * New methods on DBTransaction: `iterator`, `clear`, `count`, `dump`
1 parent abfb8ea commit fbcdeea

File tree

11 files changed

+1374
-366
lines changed

11 files changed

+1374
-366
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"@matrixai/logger": "^2.1.0",
2525
"@matrixai/workers": "^1.2.5",
2626
"abstract-leveldown": "^7.2.0",
27-
"async-mutex": "^0.3.1",
2827
"level": "7.0.1",
2928
"levelup": "^5.1.1",
3029
"sublevel-prefixer": "^1.0.0",

shell.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ pkgs.mkShell {
1313
set +o allexport
1414
set -v
1515
16+
# Enables npm link to work
17+
export npm_config_prefix=~/.npm
18+
1619
export PATH="$(pwd)/dist/bin:$(npm bin):$PATH"
1720
npm install
1821
mkdir --parents "$(pwd)/tmp"

0 commit comments

Comments
 (0)