mirror of https://github.com/rwf2/Rocket.git
Consistently use 'diesel_postgres_pool' feature.
This commit is contained in:
parent
7b4747ff1c
commit
a62248f7ce
|
@ -23,7 +23,7 @@ static_files = []
|
|||
database_pool_codegen = ["rocket_contrib_codegen", "rocket_contrib_codegen/database_attribute"]
|
||||
database_pool = ["r2d2", "database_pool_codegen"]
|
||||
# External features.
|
||||
diesel_pg_pool = ["database_pool", "diesel/postgres", "diesel/r2d2"]
|
||||
diesel_postgres_pool = ["database_pool", "diesel/postgres", "diesel/r2d2"]
|
||||
diesel_sqlite_pool = ["database_pool", "diesel/sqlite", "diesel/r2d2"]
|
||||
diesel_mysql_pool = ["database_pool", "diesel/mysql", "diesel/r2d2"]
|
||||
postgres_pool = ["database_pool", "postgres", "r2d2_postgres"]
|
||||
|
|
|
@ -705,7 +705,7 @@ impl Poolable for diesel::SqliteConnection {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "diesel_pg_pool")]
|
||||
#[cfg(feature = "diesel_postgres_pool")]
|
||||
impl Poolable for diesel::PgConnection {
|
||||
type Manager = diesel::r2d2::ConnectionManager<diesel::PgConnection>;
|
||||
type Error = r2d2::Error;
|
||||
|
|
Loading…
Reference in New Issue