How to evaluate the local database size

Hi Folks,

I want to evaluate size of couchbase lite db in device. I have hybrid mobile app for which I have used couchbase lite to store data. Now, I want to know how much size it is taking on device by using angular, ionic or js.

I am using

Thanks in Advance!

Do you mean the database created, or the footprint of Couchbase Lite itself?

It seems like you might be asking for a programmatic way of checking the database size. There’s no API for that, so you’d need to find a way to find the amount of data stored under the db directory.

The databases are stored in the filesystem in directories. You can ask the Manager what directory it stores databases in, then find the database in their and use a simple filesystem traversal to add up the size of all the files therein.