Installation
$ npm install --save node-json-database
Usage
Quick Tutorial:
// Create a database called 'myDB'myDB.create // Create a table in the database, called 'friends'friendsTable.create // Set the columnsfriendsTable.columns.add // Insert values into the tablefriendsTable.insert // Find all records with 'Johnny' as firstName console.logsearch.rows // Console output: // [// {// firstName: 'Johnny',// lastName: 'Doe',// birthday: 946684800000, // This is a UNIX timestamp// favouriteNumber: 69// }// ]
License
ISC © Iannis de Zwart