Embeddable property-graph database with an openCypher query subset: single binary, single file, optional in-memory mode.
let db = in_memory.unwrap;
db.execute.unwrap;
let result = db.execute.unwrap;
assert_eq!;
Embeddable property-graph database with an openCypher query subset: single binary, single file, optional in-memory mode.
let db = marsdb::Database::in_memory().unwrap();
db.execute("CREATE (a:Person {name: 'Alice'})-[:KNOWS]->(b:Person {name: 'Bob'})").unwrap();
let result = db.execute("MATCH (n:Person) RETURN n.name").unwrap();
assert_eq!(result.rows.len(), 2);