This crate is a small library exposing Cornucopia's GenericClient. You probably need this if you're a Cornucopia user.
The GenericClient is an abstraction over four types of connections (deadpool_postgres::Client, deadpool_postgres::Transaction, tokio_postgres::Client, tokio_postgres::Transaction). Its meant to allow you to mix-and-match these connection types in Cornucopia Queries.
| non-pooled | pooled | |
|---|---|---|
| single-statement | tokio_postgres::Client |
deadpool_postgres::Client |
| multi-statement | tokio_postgres::Transaction |
deadpool_postgres::Transaction |