We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
Do I understand correctly that the enum_def macro casts the r#type structure field to a similar column name?
Unfortunately, I haven't found a way in the source code to achieve renaming the Iden value to a custom value when using the enum_def macro.
So I'm going to tell you all that it's a bug.
p.s. the error in the second screenshot says that the r#type column is not found in the referrals_rewards table.
Raw field: r#type Iden column name: Type Query column name (iden str value): type
Raw field: r#type Iden field name: RType Query column name (iden str value): r#type
always, when escaping Rust reserved words via r#.
last
The text was updated successfully, but these errors were encountered:
Skip Rust's escaping (SeaQL#793)
018b456
Writing a test (SeaQL#793)
f52c61b
Oh, there's also the exact same problem with the Iden trait But it's not very critical there, because the variant can be renamed via attribute.
Sorry, something went wrong.
hi, how can I use the attribute to rename r#type in the enum_def macro?
Successfully merging a pull request may close this issue.
Description
Hi,
Do I understand correctly that the enum_def macro casts the r#type structure field to a similar column name?
Unfortunately, I haven't found a way in the source code to achieve renaming the Iden value to a custom value when using the enum_def macro.
So I'm going to tell you all that it's a bug.
p.s. the error in the second screenshot says that the r#type column is not found in the referrals_rewards table.
Expected Behavior
Raw field: r#type
Iden column name: Type
Query column name (iden str value): type
Actual Behavior
Raw field: r#type
Iden field name: RType
Query column name (iden str value): r#type
Reproduces How Often
always, when escaping Rust reserved words via r#.
Versions
last
The text was updated successfully, but these errors were encountered: