Additionally, you can supply an options object as the first parameter to createReadStream() with the following options:
'gt' (greater than), 'gte' (greater than or equal) define the lower bound of the range to be streamed. Only records where the key is greater than (or equal to) this option will be included in the range. When reverse=true the order will be reversed, but the records streamed will be the same.
'lt' (less than), 'lte' (less than or equal) define the higher bound of the range to be streamed. Only key/value pairs where the key is less than (or equal to) this option will be included in the range. When reverse=true the order will be reversed, but the records streamed will be the same.
'start', 'end' legacy ranges - instead use 'gte', 'lte'
Exercises _@horsejs Tweets, Keywise, and Short Scrabble Words all reference using start and end. Is it worthwhile to update these exercises? I can create a PR.
start
andend
options are labelled as legacy ranges, suggesting the use oflte
(less than or equal) andgte
(greater than or equal) instead.From the LevelUp README:
Exercises _@horsejs Tweets, Keywise, and Short Scrabble Words all reference using
start
andend
. Is it worthwhile to update these exercises? I can create a PR.