//! Example: raw SQL execution via `AthenaClient::sql`.
use athena_rs::AthenaClient;
use std::error::Error;

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    let client = AthenaClient::new("http://localhost:4052", "secret", "reporting").await?;

    let result = client
        .sql("SELECT id, email FROM users WHERE status = 'active' LIMIT 10")
        .await?;

    println!("Rows: {}", result.rows.len());
    println!("Columns: {:?}", result.columns);
    Ok(())
}
