Skip to content

ryanramage/recover-couch-doc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

recover-couch-doc

Given a deleted document id, it will attempt to get the last rev before deletion.

warning

Please note, couchdb is not a revision control db, so this is not guaranteed to work. If this db has been compacted, or replicated, chances are the prev revision is not around anymore.

Usage

As a module

npm i recover-couch-doc
var recover = require('recover-couch-doc')
recover('http://localhost:5984/stuff', 'E327293', function(err, doc) {
  
})

cmd line

npm i -g recover-couch-doc
recover-couch-doc http://localhost:5984/stuff E327293

License

MIT

About

recover a deleted doc from previous revision

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published