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 upFeature request: Boxed where clauses for delete statements #1128
Comments
This comment has been minimized.
|
I think this is probably a bug as I don't see why boxed queries shouldn't be used with a delete statement. |
Eijebong
added
the
bug
label
Aug 25, 2017
This comment has been minimized.
|
The reason the impl isn't there is that not all boxed queries are valid delete statements. If any clause is present other than the where clause, it would result in an error. However, now that we have |
sgrif
changed the title from
Cannot use BoxedDsl with delete.
to
Feature request: Boxed where clauses for delete statements
Sep 30, 2017
sgrif
removed
the
bug
label
Jan 17, 2018
This comment has been minimized.
|
I actually think boxing the where clauses by default would have been the right way to go. Unfortunately, we can't change that now that we're post-1.0. I'm definitely interested in having I'm happy to mentor someone interested in working on this. It'll be a decent sized patch, but it's pretty straightforward once you understand the basics of our codebase, and |
sgrif
added
the
mentoring available
label
Jan 17, 2018
sgrif
added this to the 1.2 milestone
Jan 17, 2018
added a commit
that referenced
this issue
Feb 3, 2018
This comment has been minimized.
|
I would like to give it a try. |
This comment has been minimized.
|
@ivanovaleksey I appreciate the offer, but this has already been mostly implemented (support for delete statements is merged, I have a branch with support for update statements that I need to clean up one last thing on before pushing up) |
This comment has been minimized.
|
Yeah, I see merged #1534 and I wonder doesn't it close this issue. |
quadrupleslap commentedAug 25, 2017
A query that has been created dynamically with
into_boxed()can't be passed todiesel::delete. Is there an alternative for dynamically adding filters to deletes or is there no workaround for this feature that looks like it's missing?