Replies: 2 comments 1 reply
-
I'm just now finding existing issues (I swear I searched first). It looks like this use case would be well suited by using cursors, I didn't realize asyncpg exposed cursors. I'll report back with what that looks like. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For copying data into a table we have 2 streaming options:
copy_to_table
)copy_records_to_table
, which accepts an async iterable)But for getting data back from the database, we only have 1 streaming option:
copy_from_table
, which accepts a(bytes) -> Awaitable
coroutine)I think it would be nice to get 2 convenience features:
* You can currently do this via queues and tasks, here's something I wrote today for a quick script (i.e. maybe there's a better way)
Beta Was this translation helpful? Give feedback.
All reactions