Replies: 1 comment 5 replies
-
I think that's something that's just not supported by the current implementation provided by diesel. We are certainly open to accept PR's adding support there, as long as they don't break any public API. I cannot provide a design for that as I do currently not have the capacity for that. |
Beta Was this translation helpful? Give feedback.
5 replies
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.
-
Hello!
I am trying to use
COPY FROM
for bulk inserts where the table I want to insert into is only known at runtime. My first thought was that I could do that with a custom implementation ofCopyTarget
, but itswalk_target
method doesn't takeself
, and can therefore only be used for tables known at compile time. My second thought was to implementCopyFromExpression
but that trait is not publicly visible.What's the best advice on doing the above? Also, I haven't looked into it in detail, but I would like to do something similar with
COPY TO
, i.e., bulk read from a table that is only known at runtime. Any advice for that would also be greatly appreciated.Thanks a ton in advance!
Beta Was this translation helpful? Give feedback.
All reactions