jeudi 21 janvier 2016

when destroy and after that create new pouchdb using of newly created db fails

Hello I am using pouchdb with ember data, and I need to remove db in some cases, so I do

db.destroy(dbname, options).then(()=>{
   db = new PouchDB(dbname, options);
},

so the db was destroyed successfuly, but when I try to use the new one, there is an error showing that I could not execute findAll, because find method is missing in pouch.js. My question is how to handle this case?




Aucun commentaire:

Enregistrer un commentaire