Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Test PouchDB #2158, IDB data corruption (with AngularJS)
<script src="//"></script>
<script src="//"></script>
<script src="index.js"></script>
var db = new PouchDB('foo');
var map = function(doc){
if(doc.type === 'test'){
emit([doc._id], null);
db.query(map, {}, function(err, result){
if (err) {
} else {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment