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
The iterator from query() just returns key & `value.
query()
key
const iterator = table.query(`hash = N(greetings) AND begins_with(range, S(hell))`) for await (const { key, value } of iterator) { console.log(key, value) }
Do we want
for await (const { err, data: { key, value } } of iterator) {
The text was updated successfully, but these errors were encountered:
actually it throws. which is more conventional
Sorry, something went wrong.
Same applies to scan()
scan()
Throwing is fine, but then please also throw for table.get() and table.put() instead of returning { err }.
table.get()
table.put()
{ err }
We should not mix the error handling of throw vs return { err } in the same codebase.
throw
return { err }
hmm. ok yeah.. { err, data } is more correct and more useful.
{ err, data }
No branches or pull requests
The iterator from
query()
just returnskey
& `value.Do we want
The text was updated successfully, but these errors were encountered: