mirror of https://github.com/rwf2/Rocket.git
14 lines
350 B
Rust
14 lines
350 B
Rust
extern crate rocket;
|
|
extern crate rocket_contrib;
|
|
|
|
#[cfg(all(feature = "diesel_sqlite_pool", feature = "diesel_postgres_pool"))]
|
|
mod databases_tests {
|
|
use rocket_contrib::databases::{database, diesel};
|
|
|
|
#[database("foo")]
|
|
struct TempStorage(diesel::SqliteConnection);
|
|
|
|
#[database("bar")]
|
|
struct PrimaryDb(diesel::PgConnection);
|
|
}
|