You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does asyncpg contain any code that would format tuples suitable for consumption in copy_to_table? I can see that copy_records_to_table should somehow format the tuples into the COPY FROM format but I can't see where this happens.
My use-case is that I am trying to use COPY FROM with an async iterator.
Thanks.
The text was updated successfully, but these errors were encountered:
Does asyncpg contain any code that would format tuples suitable for consumption in copy_to_table?
Yes. The magic happens in copy_in in protocol.pyx, and copy_records_to_table exists exactly for this purpose. Adding support for async iterables there shouldn't be hard.
Does asyncpg contain any code that would format tuples suitable for consumption in
copy_to_table
? I can see thatcopy_records_to_table
should somehow format the tuples into the COPY FROM format but I can't see where this happens.My use-case is that I am trying to use COPY FROM with an async iterator.
Thanks.
The text was updated successfully, but these errors were encountered: