machinomy / machinomy

Node.js library for micropayments in Ether and ERC20 tokens over HTTP

Home Page:http://machinomy.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make database layer pluggable

ukstv opened this issue · comments

  • Move to PouchDB or LevelDB
  • Set database as a parameter
  • Ensure it still works in browser

Using levelup is nice because it abstracts away the differences between the underlying persistence layers and works with a number of different stores, including LevelDB, RocksDB, JSON files, memory-only, etc. Some of the stores are out of date and not compliant with the latest API, but I think that ecosystem has the best chance of having multiple working stores that use a common abstraction.

Closing as done. One could select between MongoDB, Postgres, NeDB now.