louischatriot / nedb

The JavaScript Database, for Node.js, nw.js, electron and the browser
MIT License
13.5k stars 1.03k forks source link

Nedb for a persistent queue #440

Open dustintownsend opened 8 years ago

dustintownsend commented 8 years ago

I had a need for a persistent queue in an Electron application and was already using Nedb for local storage. I found a queue that allowed for custom stores (has in-memory, and sqlite available by default). You can see the project here: https://github.com/diamondio/better-queue

I created a custom store for Better Queue using Nedb https://github.com/dustintownsend/better-queue-nedb and wanted to share here incase anyone else has a need for a persistent queue with Nedb as the backend. Also, to ask for help!

Currently, there are 7 test failing that I'm going to be working though. But, if someone with more Nedb experience could look at my code to see if they see any issues it would be a big help! Here is the actual custom store code: https://github.com/dustintownsend/better-queue-nedb/blob/master/lib/stores/NedbStore.js

Any feedback, help, or criticism is welcomed. I'm new to most of this.

louischatriot commented 8 years ago

Hello Dustin, great to see you working on this! Quick note though that I have absolutely no free time these days and will not be able to help you in the forseeable future :(. I'll leave the issue open for now though if someone wants to jump in.