10 releases

new 0.1.9 Feb 10, 2025
0.1.8 Jan 21, 2025
0.1.7 Oct 20, 2024
0.1.5 Jun 1, 2023
0.1.1 Aug 18, 2022

#2491 in Database interfaces

Download history 3/week @ 2024-10-27 3/week @ 2024-12-08 101/week @ 2025-01-19 7/week @ 2025-01-26 6/week @ 2025-02-02 98/week @ 2025-02-09

212 downloads per month

MIT license

11KB
91 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

~6–16MB
~203K SLoC