level-transactions-ts
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

level-transactions-ts

Transaction layer for leveldb

npm Package Version

Features

  • ACID (atomic, consistent, isolated, durable)
  • promise return

Remark

The isolation is delta-change-based, not complete-state (whole-world) based.

It allows multiple write-txn, and the delta change will be saved.

If your application logic do write conditionally based on the read result, it may breaks the logic if the read result is affected by another txn commit earlier.

For example:

initial: A = 0

tx1: set A = 1

tx2: if A = 0, set B = 1

tx1: commit (set A=1)

tx2: commit (set B=1)

This may be undesired result depending on the application logic.

Dependencies (2)

Dev Dependencies (11)

Package Sidebar

Install

npm i level-transactions-ts

Weekly Downloads

0

Version

0.1.2

License

BSD-2-Clause

Unpacked Size

6.58 kB

Total Files

5

Last publish

Collaborators

  • beenotung