postgres_named_parameters/
internal.rs

1#![doc(hidden)]
2// Export a wrapper around postgres_from_row::FromRow so we can reference it in
3// our #[derive(Query)] procedural macro. We do not re-export the
4// postgres_from_row crate because its #[derive(FromRow)] procedural macro does
5// not work properly unless the user directly adds postgres_from_row to their
6// Cargo.toml dependencies.
7pub mod wrapper_for_derive_macro {
8    use postgres_from_row::FromRow;
9    pub fn try_from_row<T: FromRow>(row: &postgres::Row) -> Result<T, postgres::Error> {
10        T::try_from_row(row)
11    }
12}