uni-db 1.1.0

Embedded graph database with OpenCypher queries, vector search, and columnar storage
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: Apache-2.0
// Copyright 2024-2026 Dragonscale Team

#[test]
fn test_cypher_subquery_parser() -> anyhow::Result<()> {
    // Just test parsing for now
    let query = "MATCH (n:Person) WHERE EXISTS { MATCH (n)-[:KNOWS]->(:Person) } RETURN n";
    let ast = uni_cypher::parse(query);
    assert!(ast.is_ok());

    let query = "CALL { MATCH (n:Person) RETURN n.name } RETURN n.name";
    let ast = uni_cypher::parse(query);
    assert!(ast.is_ok());

    Ok(())
}