0.1.2 • Published 4 years ago

level-transactions-ts v0.1.2

Weekly downloads
4
License
BSD-2-Clause
Repository
github
Last release
4 years ago

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.