We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DB Layout for key:
e: bdb.key('e', ['uint32']),
Range Usage:
return db.range({ gte: layout.e.min(), lte: layout.e.max(), parse: key => layout.e.parse(key) });
If there's 0 written in that field, iterator.parse skips that value. Issue comes from here: https://github.com/bcoin-org/bdb/blob/master/lib/db.js#L1162
0
We need some convention, what you need to return from parser to skip that value.
E.g. null or undefined.
null
undefined
It will probably skip zero string and other falsy values )))
@chjj
I can just return buffers and parse on my own. but still I think we need some convention when to skip in iterator.
The text was updated successfully, but these errors were encountered:
I would say if (item != null) is the answer (not null or undefined). Will fix.
if (item != null)
Sorry, something went wrong.
cool. I just didn't decide on convention or I would make PR.
fac4bf0
No branches or pull requests
DB Layout for key:
Range Usage:
If there's
0
written in that field, iterator.parse skips that value.Issue comes from here: https://github.com/bcoin-org/bdb/blob/master/lib/db.js#L1162
We need some convention, what you need to return from parser to skip that value.
E.g.
null
orundefined
.It will probably skip zero string and other falsy values )))
@chjj
I can just return buffers and parse on my own. but still I think we need some convention when to skip in iterator.
The text was updated successfully, but these errors were encountered: