-
-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Depending only on sea-orm, not sea-query, breaks with derive(Iden)
#1473
Comments
Thanks for the report. |
I think it's a bad idea to have a So, maybe importing |
We will do this |
And, add a feature flag to |
We discovered this won't work. However the final resolution has been to remove sea-query's https://github.com/SeaQL/sea-orm/blob/master/tests/derive_iden_tests.rs |
Description
In order to keep sea-orm and sea-query in sync and not have different versions of traits, one can remove
sea-query
from the direct dependencies (fromCargo.toml
) and only rely on the re-export ofsea_query
insea_orm
.However, that breaks the following code:
Expected Behavior
Compiles.
Actual Behavior
Versions
sea-orm 0.11
Implied sea-query.
Additional Information
I'm guessing the derive macro expands to
sea_query::Iden
. Maybe thesea_orm::Iden
version should expand tosea_orm::sea_query::Iden
?A workaround is to also
use sea_orm::sea_query::self;
.The text was updated successfully, but these errors were encountered: