Unable to execute COPY FROM
, likely due to missing ExecuteCopyFromDsl
trait
#159
lkral-navmatix
started this conversation in
Ideas
Replies: 1 comment
-
This is expected behavior as this is a connection and not backend specific functionality. The connection provided by diesel-async just does not provide this feature yet. We are open to receive contributions for this feature, but otherwise this is something that's not planned to implement soon from my side. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Setup
Versions
Feature Flags
Problem Description
What are you trying to accomplish?
Trying to use
COPY FROM
through diesel/diesel-async. I understand this version wasn't released yet but I was eager to test this new feature.What is the expected output?
Being able to compile and execute:
What is the actual output?
Attempting to use the
execute
fromdiesel_async::RunQueryDsl
results in compilation errors:the trait ``QueryFragment<_>`` is not implemented for ...
the trait ``QueryId`` is not implemented for ...
Steps to reproduce
The code that triggers this is basically https://docs.diesel.rs/2.2.x/diesel/fn.copy_from.html#via-copyfromqueryfrom_insertable, just trying to use the diesel_async trait to run it with
AsyncPgConnection
.It looks like diesel itself uses new trait
ExecuteCopyFromDsl
to execute this type of query, I can't currently see this in here so is likely missing. I can look into implementing it but not that familiar with insides of this crate so maybe someone more familiar could tackle this quicker.Thank you
Checklist
closed if this is not the case)
Beta Was this translation helpful? Give feedback.
All reactions