Skip to content

Transaction support - Postgres #19

@ricardosc12

Description

@ricardosc12

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>,
{
    //
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions