Rocket/contrib/lib/tests/databases.rs

14 lines
302 B
Rust
Raw Normal View History

extern crate rocket;
extern crate rocket_contrib;
#[cfg(feature = "databases")]
mod databases_tests {
use rocket_contrib::databases::{database, diesel};
#[database("foo")]
struct TempStorage(diesel::SqliteConnection);
#[database("bar")]
struct PrimaryDb(diesel::PgConnection);
}