Closed dexterity2k16 closed 5 years ago
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 }))
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.