Streamable database adapter for LokiJS, an in-memory JavaScript database. Operation docs on this library can be viewed here: http://meshjs.herokuapp.com/docs/database-adapters.
var mesh = ;var lokidb = ;var loki = ;var _ = ; // setup the DBvar db = ;// db = lokidb(__dirname + "/db.json"); // also works // setup the child collectionvar peopleDb = crud; // insert one, or many items
db lokidb(targetOrOptions)
Creates a new crudlet-based db
targetOrOptions
- the target loki DB or the options for a new loki db
var db = ;var db = ;