Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

local database with javascript

//get in GitHub
//more info in https://pouchdb.com
var db = new PouchDB('dbname');

db.put({
  _id: 'dave@gmail.com',
  name: 'David',
  age: 69
});

db.changes().on('change', function() {
  console.log('Ch-Ch-Changes');
});

db.replicate.to('http://example.com/mydb');
Source by pouchdb.com #
 
PREVIOUS NEXT
Tagged: #local #database #javascript
ADD COMMENT
Topic
Name
5+7 =