1
2
3
4
5
6
7
8
9
fn main() -> elephantry::Result {
    let config = config::Config::builder()
        .add_source(config::Environment::with_prefix("DATABASE"))
        .build()?;

    let elephantry = elephantry::Pool::from_config(&config.try_deserialize()?)?;

    elephantry.ping()
}