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
Cargo doesn't compile when using query_as! on postgres views.
I get errors for each column such as:
error[E0277]: the trait bound `$COLUMN_TYPE: From<std::option::Option<$COLUMN_TYPE>>` is not satisfied
Check this repo: https://github.com/alexisgaziello/sqlx-view/tree/main
The repo has a minimal code example:
fn not_working() { let _cars = sqlx::query_as!( Car, "SELECT id, created_at FROM active_car", ); }
... + the database setup
rustc --version
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Description
Cargo doesn't compile when using query_as! on postgres views.
I get errors for each column such as:
error[E0277]: the trait bound `$COLUMN_TYPE: From<std::option::Option<$COLUMN_TYPE>>` is not satisfied
Minimal Reproduction
Check this repo: https://github.com/alexisgaziello/sqlx-view/tree/main
The repo has a minimal code example:
... + the database setup
Info
rustc --version
: [rustc 1.76.0 (07dca489a 2024-02-04)]The text was updated successfully, but these errors were encountered: