cornucopia_client

Crates.iocornucopia_client
lib.rscornucopia_client
version0.2.3
sourcesrc
created_at2022-04-20 21:45:23.756968
updated_at2022-08-01 17:29:54.952302
descriptionGeneric client trait for Cornucopia users
homepagehttps://github.com/LouisGariepy/cornucopia
repositoryhttps://github.com/LouisGariepy/cornucopia
max_upload_size
id571222
size12,521
__dil__ (LouisGariepy)

documentation

README

Cornucopia

Generate type checked Rust from your SQL

actions status Crates.io version Download

Install | Example


WARNING: This crate is compatible with Cornucopia up to version 0.7 only. It will no longer be maintained or updated. If you are looking for the most recent clients, you can find them here (sync version) and here (async version).


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
Commit count: 543

cargo fmt