feature/gresiq-v1
claude/smbcloud-github-app-k9641p
development
feature/apps
feature/build-release
feature/ci-docs
feature/ci-ruby-gems
feature/cicd
feature/completion
feature/dist-nuget
feature/fix-ci-sdk-pypi-rubygem
feature/fix-clippy-on-stable-channel
feature/fix-deployment-script
feature/github-email
feature/gresiq-v1
feature/project-new-structure
feature/rsync-deploy
feature/ruby-runner
feature/sdk-npm
feature/sdk-workflows
feature/smbcloud-cli-release-npm
feature/smbcloud-deploy
feature/wasm
main
release/v0.7.4
| 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 | } |