Make database layer pluggable
ukstv opened this issue · comments
Sergey Ukustov commented
- Move to PouchDB or LevelDB
- Set database as a parameter
- Ensure it still works in browser
Evan Schwartz commented
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.
Sergey Ukustov commented
Closing as done. One could select between MongoDB, Postgres, NeDB now.