#flight-sql #sqllogictest #sql

sqllogictest-flightsql

A sqllogictest runner for Flight SQL protocol supported databases

2 unstable releases

Uses new Rust 2024

0.2.0 Mar 25, 2026
0.1.0 Dec 23, 2025

#10 in #flight-sql

Download history 30/week @ 2025-12-18 157/week @ 2025-12-25 161/week @ 2026-01-01 38/week @ 2026-01-15 93/week @ 2026-01-22 5/week @ 2026-03-05 45/week @ 2026-03-19 31/week @ 2026-03-26

81 downloads per month

MIT license

23KB
434 lines

sqllogictest-flightsql

License Crates.io Docs

A sqllogictest runner for Flight SQL protocol supported databases.

Usage

#[tokio::test]
async fn sqllogictest() -> Result<(), Box<dyn std::error::Error>> {
    let mut tester = sqllogictest::Runner::new(|| async {
        FlightSqlDB::new_from_endpoint(
            "demo-db",
            "http://localhost:50050",
            "admin",
            "password",
        )
        .await
    });
    tester.with_column_validator(sqllogictest::strict_column_validator);

    let mut slts_dir = tokio::fs::read_dir(format!("tests/slts")).await?;
    while let Some(entry) = slts_dir.next_entry().await? {
        if entry.file_type().await?.is_file() {
            println!(
                "======== start to run file {} ========",
                entry.file_name().to_str().unwrap()
            );
            tester.run_file_async(entry.path()).await?;
        }
    }
    Ok(())
}

Dependencies

~31–44MB
~728K SLoC