§FromRow
Part of pg_sgr: macros for deserializing rust data structures from postgres rows.
§Install
§Sync
cargo add pg_sgr --features sync,from_row
§Tokio
cargo add pg_sgr --features tokio,from_row
§Macros
Crate contains 3 derive macros:
- FromRow - for deserializing rust data structures from &postgres::Row or &tokio_postgres::Row
- FromRows - for deserializing rust data structures from Vec<postgres::Row> or Vec<tokio_postgres::Row>
- FromJson - for deserializing rust data structures from JSON & JSONB columns