Remove inherent SimpleExpr methods that duplicate ExprTrait#890
Remove inherent SimpleExpr methods that duplicate ExprTrait#890tyt2y3 merged 16 commits intoSeaQL:masterfrom
SimpleExpr methods that duplicate ExprTrait#890Conversation
Expurple
left a comment
There was a problem hiding this comment.
cargo test fails, need to add use crate::ExprTrait; where the methods are called (as expected)
There was a problem hiding this comment.
Many similar methods are still there, you can search for the word "equivalent" in expr.rs
EDIT: ah, sorry, I see. They are all in Expr, which will be deleted separately in #889. But this could still be a problem because of unexpected interactions with that PR. Can you rebase this branch on top of that branch, and then set that branch as a base of this PR on Github? So that here we can see the diff relative to that
|
I couldn't switch the base branch to my fork branch, so I created a PR on my fork. The difference is here. Huliiiiii#1 |
There was a problem hiding this comment.
Thank you. The diff at Huliiiiii#1 looks amazing. I ran cargo test locally, everything works as expected.
Now we need to check and fix the breakage in sea_orm. Can you make a draft sea_orm PR stacked on top of SeaQL/sea-orm#2604? And an "artificial" PR to see the diff. Everything like in this PR + the temporary Cargo.toml change that I recommended in SeaQL/sea-orm#2604 (review)
|
We can rebase this on top of |
|
Can you fix the CI errors, please? |
Expurple
left a comment
There was a problem hiding this comment.
Everything seems good here.
We can resolve the merge conflicts in SeaQL/sea-orm#2606 and check what the CI says there
There was a problem hiding this comment.
Thank you. Everything seems good in both PRs, the CI passes.
Although, the PR name and changelog look like we're removing methods from ExprTrait. I'd reword it into something like this:
- Remove inherent
SimpleExprmethods that duplicateExprTrait.
- How to migrate: where the method calls no longer compile, just
use sea_query::ExprTrait, as the compiler suggests.
After that, we can merge this PR and proceed with SeaQL/sea-orm#2606 (review)
SimpleExpr from ExprTraitSimpleExpr methods that duplicate ExprTrait
|
Not at all, Feel free to make any updates you see fit. |
|
thank you guys! |
PR Info
ExprandSimpleExpras one type #889ExprTraitsea-orm#2606New Features
Bug Fixes
Breaking Changes
SimpleExprmethods that duplicateExprTrait.Expr, becauseExprhas recenly become an alias ofSimpleExpr(UnifyExprandSimpleExpras one type #889)use sea_query::ExprTrait, as the compiler suggests.PartialEqorPartialOrdmethods, qualify them asTheTrait::the_methodor use Rust's built-in operators.Changes