Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upDocs/Message improvements (eg, "no method named `on_conflict` found for type OwnedBatchInsert") #1797
Comments
This comment has been minimized.
bnewbold
commented
Jul 26, 2018
This comment has been minimized.
|
Unfortunately, this is an error generated by Rust in general and not something we have any control over. Feel free to open an issue on the Rust repo if you think this is actionable for them. |
sgrif
closed this
Jul 26, 2018
This comment has been minimized.
|
(The problem is likely that you forgot an |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bnewbold commentedJul 26, 2018
I had a piece of code like this:
which was giving me errrors like:
which I found really opaque. Eventually I found that passing the rows by reference (
.values(&new_abstracts)) fixed the error.I'd like to contribute an improved error message and/or note in the documentation for
on_conflict(), as a first-time contributor, but I don't know enough about diesel internals to know if this makes sense. The error message looks like a rust type-system thing, and I don't know if there is a way to hook in to that.I'd be happy to contribute more such error message improvements if it's possible. I have enjoyed using Diesel for this project, but have run in to a lot of very long compile error messages, and think it would be a huge win if they could be improved.
Versions
diesel = { version = "1.3.2", features = ["postgres", "uuid", "serde_json", "chrono", "r2d2"] }