Answer by Colin Skow for Check if PouchDB database is empty
There are several ways to do this. You could query and check for an empty result list. You can also use db.info().db.info().then(function (result) { if(result.doc_count === 0) { console.log('It's...
View ArticleCheck if PouchDB database is empty
I am working on an app which stores data locally using PouchDB. It displays a list of items and I would like to be able to check if the database is empty so that in the case that it is, I can append a...
View Article
More Pages to Explore .....