Rocket/contrib/lib/tests/databases.rs

14 lines
350 B
Rust
Raw Normal View History

extern crate rocket;
extern crate rocket_contrib;
2018-10-07 00:24:11 +00:00
#[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);
}