Skip to content

Commit

Permalink
add closing paren
Browse files Browse the repository at this point in the history
  • Loading branch information
katshun0307 committed Jun 30, 2024
1 parent 078edd8 commit 0d1e464
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 0d1e464

Please sign in to comment.