nosqlite
nosqlite is human readable nosql type filesystem json store
Installation
npm install nosqlite
Usage
Create a connection
// Default path for storeconnection = newConnection; // Custom path for storeconnection = newConnection'/path/to/store';
Select a database
// Default db is 'test'db = connection;
Check if database exists
// Asyncdb; // Syncif !db console;
Create a database
// Asyncdb; //Syncdb;
Destroy a database
// Asyncdb; //Syncdb;
Create a document
If obj.id
(or obj._id
) is not supplied, obj.id
is auto generated.
// Asyncdb; // Sync// returns iddb;
Get a document
// Asyncdb; // Syncdb;
Update a document
// Asyncdb; // Syncdb;
Delete a document
// Asyncdb; // Syncdb;
Find a document
// Asyncdb; // Syncdocs = db;
All documents
// Asyncdball { if err throw err;}; // Syncdocs = db;
If you like this project, please watch this and follow me.
Testing
npm test
Contributors
Here is a list of Contributors
TODO
Auto ID generation- Authentication system
- Map-Reduce (views)
- Buffer writes internally
- Concurrent writes from multi processes
I accept pull requests and guarantee a reply back within a day
License
MIT/X11
Bug Reports
Report here. Guaranteed reply within a day.
Contact
Pavan Kumar Sunkara (pavan.sss1991@gmail.com)