Quantcast
Channel: Check if PouchDB database is empty - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article



Check 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
Browsing latest articles
Browse All 2 View Live




Latest Images