mafintosh / hyperdb

Distributed scalable database
MIT License
752 stars 75 forks source link

opts.live for createHistoryStream #92

Open ghost opened 6 years ago

ghost commented 6 years ago

I can sort of get a live stream of log records by listening for the 'append' event on the db, but it would be nice to have an opts.live option to createHistoryStream()`. This option would pair well with passing in a sequence number to do ranges which is sort of what #51 suggests.

hackergrrl commented 6 years ago

I implemented this in 2.0.0 in order to write hyperdb-index, but hasn't been re-added yet in the 3.0.0 RC. The APIs should end up identical (or very close to it), so if you dev against hyperdb@2.x.x you should be OK to upgrade to 3.0.0 once it's complete.