Skip to navigation
Dump and load fast a complete couchdb database into pouchdb
20.09.18
example 1. npm install -g --unsafe-perm --verbose pouchdb-dump-cli 2. set the cross origin on webserver like apache Header set Access-Control-Allow-Origin "*" 3. load the libs here with browserify var PouchDB = require('pouchdb'); PouchDB.plugin(require('pouchdb-load')); 4. self.db.load('https://foo.com/bar.txt', { proxy: https://couchdbserver:5984/bar, ajax: { timeout: 300000, withCredentials:false } }).then(function () { console.log('done loading'); }).catch(function (err) { console.log(err); }); };
https://github.com/pouchdb-community/pouchdb-load
Reply
Anonymous
pouchdb-dump http://8.8.8.8:5984/bar > bar.txt
20.09.18
Reply
Anonymous
Information Epoch 1746071603
There is no perfect productivity system.
Home
Notebook
Contact us