cargo add exarrow-rs
cargo add tokio --features rt-multi-thread,macrosuse exarrow_rs::adbc::Driver;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let driver = Driver::new();
let database = driver.open("exasol://user:pwd@localhost:8563/my_schema")?;
let mut connection = database.connect().await?;
let results = connection.query("SELECT * FROM customers").await?;
for batch in results {
println!("Got {} rows", batch.num_rows());
}
connection.close().await?;
Ok(())
}See docs/ for comprehensive documentation:
- Connection - Connection strings, TLS, timeouts
- Queries - Query execution and transactions
- Prepared Statements - Parameter binding
- Import / Export - Bulk data transfer
- Type Mapping - Exasol to Arrow conversions
- Driver Manager - ADBC integration (Python, Polars, Go, Java)
Community-supported. Licensed under MIT.
Build with Rust 🦀 and made with ❤️
Based on a prototype by marconae, now maintained by Exasol Labs.