pub async fn setup_clickhouse() -> Result<Client>Expand description
Initializes and tests the connection to the ClickHouse database.
- Loads the ClickHouse URL from environment variables or defaults.
- Creates a ClickHouse client and attempts a test query to verify connectivity.
- Panics if the connection test fails.
ยงReturns
Returns a configured clickhouse::Client ready for use.