Currently the methods allow receiving only the Postgres Pool type.
The idea here would be to implement the Executor type as shown in the line below, thus allowing the use of transactions.
fn insert<'a, E>(pool: E, table: &'static str) -> Response
where
E: Executor<'a, Database = Postgres>,
{
//
}
Currently the methods allow receiving only the Postgres Pool type.
The idea here would be to implement the Executor type as shown in the line below, thus allowing the use of transactions.