1 use gresiq::GresiqConfig;
2
3 #[tokio::main]
4 async fn main() -> Result<(), Box<dyn std::error::Error>> {
5 let config = GresiqConfig::from_env()?;
6
7 println!("GresIQ bootstrap");
8 println!(" branch: {}", config.branch_target.summary());
9 println!(" compute: {}", config.connection_policy.compute_tier);
10 println!(" endpoint: {}", config.redacted_connection_string());
11
12 let connection = config.connect().await?;
13 let health_check = connection.health_check().await?;
14
15 println!(" database: {}", health_check.database_name);
16 println!(" user: {}", health_check.username);
17 println!(" server: {}", health_check.server_version);
18
19 Ok(())
20 }