Skip to content

sql .toNodeStream() : ReadableStream #109

Closed
@tracker1

Description

@tracker1

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.
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions