Skip to content
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

Fix non-matching parenthesis #225

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ Any time we run or revert a migration, this file will get automatically updated.

Using `#[derive(Queryable)]` assumes that the order of fields on the `Post` struct matches
the columns in the `posts` table, so make sure to define them in the order seen in the `schema.rs` file.
Using `#[derive(Selectable)]` in combination with [`SelectableHelper::as_select`] ensures that the field order always matches. The `#[diesel(check_for_backend(diesel::pg::Pg)]` attribute provides a further check that all field types match which what your query is returning. This attribute can improve the error messages generated by the compiler significantly.
Using `#[derive(Selectable)]` in combination with [`SelectableHelper::as_select`] ensures that the field order always matches. The `#[diesel(check_for_backend(diesel::pg::Pg))]` attribute provides a further check that all field types match which what your query is returning. This attribute can improve the error messages generated by the compiler significantly.

[`SelectableHelper::as_select`]: https://docs.diesel.rs/2.2.x/diesel/prelude/trait.SelectableHelper.html#tymethod.as_select

Expand Down
Loading