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

fix(ext/node): implement StatementSync#iterate #28168

Merged
merged 4 commits into from
Feb 18, 2025

Conversation

littledivy
Copy link
Member

@littledivy littledivy commented Feb 18, 2025

Fixes #28130

@littledivy littledivy marked this pull request as ready for review February 18, 2025 13:45
scope: &mut v8::HandleScope<'a>,
#[varargs] params: Option<&v8::FunctionCallbackArguments>,
) -> Result<v8::Local<'a, v8::Object>, SqliteError> {
macro_rules! v8_static_strings {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should just export this from deno_core - this is the third place we're redefining this macro

Comment on lines 207 to 209
for (const row of stmt.iterate()) {
result.push(row);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't it crash/error if you try to iterate again? Can you add a test for that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a test

@littledivy littledivy merged commit 4ab380e into denoland:main Feb 18, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

StatementSync.iterate() missing in node:sqlite
3 participants