kriszyp / lmdb-js

Simple, efficient, ultra-fast, scalable data store wrapper for LMDB
Other
482 stars 39 forks source link

How to get all data count #125

Closed KaffinPX closed 2 years ago

kriszyp commented 2 years ago

If you want to get the count of all entries in a database, you can do db.getStats().entryCount. If you need to do it for a specific range of keys, you can use db.getCount({start:..., end:...}) (or any of the range options).

KaffinPX commented 2 years ago

Thanks <3