iridium_core 0.1.12

SQL Server-compatible Rust engine core for Iridium SQL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use iridium_core::{parse_sql, Engine};

#[test]
fn debug_view_smoke() {
    let db = Engine::new();
    let stmt = parse_sql("SELECT 1 AS n").expect("parse failed");
    let result = db
        .execute(stmt)
        .expect("execute failed")
        .expect("expected result set");

    assert_eq!(result.columns, vec!["n".to_string()]);
    assert_eq!(result.rows.len(), 1);
}