-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
Alter TableRef
for Any Statement Type That Implements a (New) Trait
#445
Comments
TableRef
for Any Statement TypeTableRef
for Any Statement Type That Implements a (New) Trait
@billy1624 I might try just add 1 method to pub trait SchemaDefinitionStatement {
fn prefix_table_name_with_schema<A>(&mut self, schema: A) -> &mut Self
where
A: IntoIden + 'static;
} Let me know if you think it's a bad idea :) |
This make sense to me :P But we might want to rename the trait then. Let me think... |
@nahuakang maybe add associated type to trait? For work with: |
@billy1624 also made this PR, which might resolve this issue? |
Hey @nahuakang, you're correct! This feature is no longer needed. This is part of SeaQL/sea-orm#521 but we don't need it now as we figure out another way to achieve it. |
I'll close this now. In case anyone interested on this. Please leave a comment and consider reopen this :) |
Motivation
Issue for self-assignment and tracking :)
Following this discussion, we need to implement a trait that allows the access and modification of
TableRef
on all statement types that implement the said trait to continue working on sea-orm #981. The statement types that should implement this trait includes:Proposed Solutions
The trait:
Helper on
TableRef
:The text was updated successfully, but these errors were encountered: