couchdb-doc_purger
What is Couchdb Doc Purcher?
npm module to completely purge deleted couchdb documents
Usage:
1. In your project folder install
npm install couchdb-doc_purger
2. Create a file like clean.js:
var i = require('couchdb-doc_purger');
i.dbs['foo-db'] = {
'http://192.168.80.241:5984' : {'user' : 'foo','pass' : 'bar'},
'http://192.168.80.242:5984' : {'user' : 'foo','pass' : 'bar'},
'http://foo.com' : {'user' : 'foo','pass' : 'bar'}
};
i.servers = {
'http://192.168.80.238:5984' : {'user' : 'captain','pass' : 'Tamitasmalogr'},
'http://192.168.80.240:5984' : {'user' : 'captain','pass' : 'Tamitasmalogr'},
'http://192.168.80.241:5984' : {'user' : 'captain','pass' : 'Tamitasmalogr'}
};
async function start() {
await i.purge_dbs();
await i.purge_servers();
}
start();
3.execute the file with
nodejs example.js
License
GNU General Public License v3.0 -