adelsz / pgtyped

pgTyped - Typesafe SQL in TypeScript
https://pgtyped.dev
MIT License
2.91k stars 94 forks source link

Add support for streaming/cursor #568

Closed EloB closed 4 months ago

EloB commented 7 months ago

Thanks for an amazing library.

Is your feature request related to a problem? Please describe. I'm planning to use this for big datasets and unsure how todo it. I know that pg has a sub package called pg-cursor that allows streaming data from postgres instead of having to read every row into memory. https://node-postgres.com/apis/cursor

Describe the solution you'd like If this already have supported would love to see some example of it else I did a PR that fixes https://github.com/adelsz/pgtyped/pull/569.