Skip to content

sql .toNodeStream() : ReadableStream #109

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

Closed
tracker1 opened this issue Aug 19, 2020 · 2 comments
Closed

sql .toNodeStream() : ReadableStream #109

tracker1 opened this issue Aug 19, 2020 · 2 comments

Comments

@tracker1
Copy link

As much as I appreciate the current stream method... It Would be awesome to have a method that returns a readable stream so that each row can be iterated more easily.

async fn() {
  for await (const row of sql`...`.toNodeStream()) {
    // do something with row.
  }
}
@porsager
Copy link
Owner

I think this is a dupe of #30 right?

@tracker1
Copy link
Author

@porsager yes, sorry, didn't realize #30 was still there, I recall some discussion before, but not really traction, closing as a dupe. Either would be nice to have to support the syntax.

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

No branches or pull requests

2 participants