11 releases
0.1.19 | Apr 1, 2025 |
---|---|
0.1.17 | Mar 3, 2025 |
0.1.7 |
|
0.1.5 |
|
0.1.1 |
|
#1957 in Database interfaces
269 downloads per month
12KB
95 lines
zawgl-client
Zawgl graph database rust client
Usage
Zawgl query language is Cypher.
Sample usage:
use serde_json::*;
let client = Client::new("ws://localhost:8182").await;
let params = json!({
"pid": 12
});
let r = client.execute_cypher_request_with_parameters("match (n:Person) where id(n) = $pid return n", params).await;
The response is a Json message, see example below:
{
"request_id": "969f462c-ec71-41ab-bed8-0b46314f5965",
"result": {
"graphs": [
{
"nodes": [
{
"name": "x",
"id": 113,
"properties": [],
"labels": [
"Person"
]
}
],
"relationships": [
{
"id": 78,
"source_id": 113,
"target_id": 113,
"properties": [],
"labels": [
"FRIEND_OF"
],
"name": "f"
}
]
}
]
}
}
Dependencies
~8–21MB
~219K SLoC