NeDB Support
See original GitHub issueIs your feature request related to a problem? Please describe.
For smaller projects where a full mongodb server is overkill, it would be great to use rest-hapi
with NeDB: https://github.com/louischatriot/nedb
Describe the solution you’d like Rather than providing a mongo URI, we could pass in an object that maps model name keys to NeDB datastore instances (i.e., mongo collections).
Describe alternatives you’ve considered TingoDB, but it appears to be abandoned.
Additional context
I haven’t looked in detail yet to see if rest-hapi
uses any parts of the mongo API that NeDB does not support.
If this seems possible, I can help with the code changes.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
GitHub - louischatriot/nedb: The JavaScript Database, for ...
You can support NeDB development by sending money or bitcoins! ... You can use NeDB as an in-memory only datastore or as a...
Read more >NeDB
NeDB. NeDB is a lightweight embedded document DBMS written in JavaScript. It supports Node.js, nw.js, Electron, and web browser environments ...
Read more >nedb-promises
A dead-simple promise wrapper for nedb.. Latest version: 6.2.1, last published: 3 months ago. Start using nedb-promises in your project by ...
Read more >nedb/README.md
You can support NeDB development by sending money or bitcoins! 17. 18, Money: [![Donate to author](https://www ...
Read more >NeDB · Feathersjs
The following example creates a NeDB messages service. It will create a messages.db datastore file in the db-data directory and automatically load it....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve mainly used MongoDB and MariaDB/MySQL, but I also really liked RethinkDB before the company went under. I sort of lost hope for it, but it looks like the community has kept it up pretty well though.
It has the ability to stream updates to queries in real-time as the database changes, which is really slick.
Yeah that makes total sense. Just curious, if you could choose your ideal DB for your application, what would it be? I would like to one day update rest-hapi to support multiple DBs.