Skip to content

Add a way to stream raw query results. #1403

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

Open
igalklebanov opened this issue Mar 27, 2025 · 1 comment
Open

Add a way to stream raw query results. #1403

igalklebanov opened this issue Mar 27, 2025 · 1 comment
Labels
api Related to library's API enhancement New feature or request

Comments

@igalklebanov
Copy link
Member

Hey 👋

Currently, you can only execute raw queries.

Would make sense to explore supporting raw query streaming:

import { sql } from 'kysely'

for await (const item of sql`...`.stream(db)) {
  // ...
}
@igalklebanov igalklebanov added api Related to library's API enhancement New feature or request labels Mar 27, 2025
@kysely-org kysely-org deleted a comment Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to library's API enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant