File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11# postgres-from-row
22
3- Derive [ ` FromRow ` ] to generate a mapping between a struct and postgres rows.
3+ Derive ` FromRow ` to generate a mapping between a struct and postgres rows.
44
55This crate works with [ postgres] ( < https://docs.rs/postgres > ) by default.
66
@@ -38,9 +38,9 @@ let todo = Todo::try_from_row(&row);
3838assert! (todo . is_err ());
3939```
4040
41- Each field need's to implement [ ` postgres::types::FromSql ` ] , as this will be used to convert a
41+ Each field need's to implement ` postgres::types::FromSql ` , as this will be used to convert a
4242single column to the specified type. If you want to override this behavior and delegate it to a
43- nested structure that also implements [ ` FromRow ` ] , use ` #[from_row(flatten)] ` :
43+ nested structure that also implements ` FromRow ` , use ` #[from_row(flatten)] ` :
4444
4545``` rust
4646use postgres_from_row :: FromRow ;
Original file line number Diff line number Diff line change 1+
2+ cargo readme | sed ' s/\[\(`[^`]*`\)]/\1/g' > README.md
3+
You can’t perform that action at this time.
0 commit comments