| Crates.io | zeta4g-driver |
| lib.rs | zeta4g-driver |
| version | 0.1.3 |
| created_at | 2025-12-26 08:10:55.464899+00 |
| updated_at | 2025-12-26 09:10:21.205805+00 |
| description | Rust driver for Zeta4G graph database with Bolt protocol support |
| homepage | https://github.com/zeta9044/zeta4g-driver |
| repository | https://github.com/zeta9044/zeta4g-driver |
| max_upload_size | |
| id | 2005389 |
| size | 465,017 |
Rust driver for Zeta4G graph database with Bolt protocol support.
Add to your Cargo.toml:
[dependencies]
zeta4g-driver = "0.1"
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(())
}
| 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 |
MIT License