Jarjs
A minimalistic Javascript in-memory database
Status
Warning! JarJS is under development! the API is not yet finished! use this as preview only, not for production puprpose.
Roadmap
- Persistance
- Standalone server
- Key-Value capabilities
Install
npm install jarjs
Quick start
var Jar = ;var db = name : 'myDatabase'; /* OPERATIONS ON DOCUMENTS */ //Creates a new collectiondb; //Adds a document to the collectiondb;//Updates a documentdb //Query the databasedb; /* OPERATION ON VALUES */ //Creates a new key value pairdb; //Returns 'myValue'db; //Returns undefineddb; //Deletes the myKey pairdb; /* OPERATIONS ON LISTS */ //Creates an empty list with 'myList' keydb; //pushes an element on the left of the listdb; //pushes an element on the right of the listdb; //deletes every keydb;