pg-client-config 0.1.2

Support for Postgres service configuration files and environment variables
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//!
//! Check the postgres configuration
//!
//! Output the initialized configuration.
//!
//! This enable to check the configuration
//! settings given from connection string
//! environment and service files.
//!
use pg_client_config::{load_config, Result};

fn main() -> Result<()> {
    let arg = std::env::args().nth(1);
    println!("Checking postgres config from: {arg:?}");
    let config = load_config(arg.as_deref())?;
    println!("{config:#?}");
    Ok(())
}