sqlx-utils 1.1.3

Utilities for working with SQLx in a structured and efficient way, both when developing and running
Documentation
1
2
3
4
5
6
7
8
9
use super::db_type;

db_type! {
    pub type Pool = [sqlx::AnyPool, sqlx::postgres::PgPool, sqlx::mysql::MySqlPool, sqlx::sqlite::SqlitePool]
}

db_type! {
    pub type PoolOptions = [sqlx::any::AnyPoolOptions, sqlx::postgres::PgPoolOptions, sqlx::mysql::MySqlPoolOptions, sqlx::sqlite::SqlitePoolOptions]
}