How to fetch all records written so far to the ldb
dexterity2k16 opened this issue · 1 comments
dexterity2k16 commented
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.
juliangruber commented
Does this work for you?
db.createReadStream().on('data', ({ key, value }) => console.log({ key, value }))