Level/community

How to fetch all records written so far to the ldb

dexterity2k16 opened this issue · 1 comments

I want to fetch all records written to the ldb file. I tried db.get, createReadStream, nothing seems to work. They just return the latest value.

Does this work for you?

db.createReadStream().on('data', ({ key, value }) => console.log({ key, value }))