Skip to content
New issue

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

StatementSync.iterate() missing in node:sqlite #28130

Closed
jtoppine opened this issue Feb 15, 2025 · 0 comments · Fixed by #28168
Closed

StatementSync.iterate() missing in node:sqlite #28130

jtoppine opened this issue Feb 15, 2025 · 0 comments · Fixed by #28168
Labels
node compat node:sqlite Issues related to the `node:sqlite` module

Comments

@jtoppine
Copy link

Deno's node:sqlite implementation appears to not have StatementSync.iterate() method to get query results.

https://nodejs.org/api/sqlite.html#statementiteratenamedparameters-anonymousparameters

Looks like the iterate() method was added pretty recently in node v23.4.0. Having a cursor or iterator type of way to process results in a streaming fashion instead of loading everything to memory via StatementSync.all() would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
node compat node:sqlite Issues related to the `node:sqlite` module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants