parsql_postgres::crud_ops

Function get

Source
pub fn get<T: Queryable + SqlParams, F, R>(
    client: Client,
    entity: T,
    to_model: F,
) -> Result<R, Error>
where F: Fn(&Row) -> Result<R, Error>,