rs-db-driver-neo4j-neo4rs 0.1.0
Neo4j: neo4rs (the driver, re-exported, with a runnable example)
Install
cargo add rs-db-driver-neo4j-neo4rs --registry rupm
In Ruststudio: Packages, search for rs-db-driver-neo4j-neo4rs, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-23.
Versions
- 0.1.0 2026-11-23
README
# rs-db-driver-neo4j-neo4rs
Neo4j - neo4rs: async Bolt driver
Add it with `rupm add rs-db-driver-neo4j-neo4rs` (or `cargo add rs-db-driver-neo4j-neo4rs --registry rupm`). The driver `neo4rs` is re-exported as `rs_db_driver_neo4j_neo4rs::neo4rs`.
Also serves: Memgraph, Amazon Neptune (openCypher)
This driver is async: your project also needs an async runtime, for example `cargo add tokio --features macros,rt-multi-thread`.
## Example
```rust
use neo4rs::{query, Graph};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let graph = Graph::new("127.0.0.1:7687", "neo4j", "password").await?;
let mut rows = graph.execute(query("RETURN 1 AS n")).await?;
while let Some(row) = rows.next().await? {
let n: i64 = row.get("n")?;
println!("the server answered {n}");
}
Ok(())
}
```