node minimal db example
Example: node minimal db example
var Datastore = require('nedb');
var users = new Datastore({ filename: 'users.db', autoload: true });
var tweets = new Datastore({ filename: 'tweets.db', autoload: true });
var messages = new Datastore({ filename: 'messages.db', autoload: true });
var scott = {
name: 'Scott',
twitter: '@ScottWRobinson'
};
users.insert(scott, function(err, doc) {
console.log('Inserted', doc.name, 'with ID', doc._id);
});