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