zeta4g-driver

Crates.iozeta4g-driver
lib.rszeta4g-driver
version0.1.3
created_at2025-12-26 08:10:55.464899+00
updated_at2025-12-26 09:10:21.205805+00
descriptionRust driver for Zeta4G graph database with Bolt protocol support
homepagehttps://github.com/zeta9044/zeta4g-driver
repositoryhttps://github.com/zeta9044/zeta4g-driver
max_upload_size
id2005389
size465,017
kangyou.choi (zeta9044)

documentation

https://docs.rs/zeta4g-driver

README

zeta4g-driver

Rust driver for Zeta4G graph database with Bolt protocol support.

Installation

Add to your Cargo.toml:

[dependencies]
zeta4g-driver = "0.1"

Quick Start

use zeta4g_driver::{Driver, Config, AuthToken};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Connect to database
    let driver = Driver::new(
        "bolt://localhost:7687",
        AuthToken::basic("zeta4g", "password"),
    ).await?;

    // Create session
    let session = driver.session(None).await?;

    // Run query
    let mut result = session.run("MATCH (n) RETURN n LIMIT 10", None).await?;

    while let Some(record) = result.next().await {
        println!("{:?}", record);
    }

    // Close
    session.close().await?;
    driver.close().await?;

    Ok(())
}

Features

  • Bolt protocol 4.x/5.x support
  • Connection pooling
  • Transaction support
  • Routing driver for cluster
  • Reactive streams

URI Schemes

Scheme Description
bolt:// Direct connection to single server
bolt+s:// Direct connection with TLS
zeta4g:// Routing connection to cluster
zeta4g+s:// Routing connection with TLS

License

MIT License

Commit count: 0

cargo fmt