Is it possible to do "for await (const iterator of db.selectFrom("table").selectAll()) {....}
Can I execute as an async generator like in a cursor ?
Solution:Jump to solution
Hey 👋
Have you tried https://kysely-org.github.io/kysely-apidoc/interfaces/SelectQueryBuilder.html#stream ?...
4 Replies
Solution
Hey 👋
Have you tried https://kysely-org.github.io/kysely-apidoc/interfaces/SelectQueryBuilder.html#stream ?
Hey!! Nope ! Thanks that's what I was looking for, but it wasn't in the main documentation I think (?)
That's a link to the main documentation
I was looking here:
https://kysely.dev/docs
But you are right that's also the main documentation of the API, but the search is a bit less "natural"