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
pub struct A { id: i64, #[sqlx(rename = "type")] pub a_type: i32, }
SELECT * FROM a
let a = sqlx::query_file_as!(A, "a.sql").fetch_all(&pool).await?;
it will show error 'xxx' has no field named 'r#type' available fields are: yyy
'xxx' has no field named 'r#type' available fields are: yyy
The text was updated successfully, but these errors were encountered:
The macros can't see attributes on the struct definition, that's not how it works.
However, this will work when #514 is fixed so I'm closing this as duplicate.
Sorry, something went wrong.
No branches or pull requests
it will show error
'xxx' has no field named 'r#type' available fields are: yyy
The text was updated successfully, but these errors were encountered: