#r2d2 #cypher #neo4j

r2d2_cypher

Cypher support for the r2d2 connection pool

6 releases (breaking)

Uses old Rust 2015

0.4.0 Dec 6, 2017
0.3.0 Apr 27, 2017
0.2.0 Mar 10, 2017
0.1.0 Jan 21, 2017
0.0.2 Oct 26, 2015

#19 in #cypher

Download history 16/week @ 2025-06-17 10/week @ 2025-06-24 8/week @ 2025-07-01 9/week @ 2025-07-08 21/week @ 2025-07-15 12/week @ 2025-07-22 2/week @ 2025-07-29 9/week @ 2025-08-05 1/week @ 2025-08-12 17/week @ 2025-08-19 10/week @ 2025-08-26 18/week @ 2025-09-02 14/week @ 2025-09-09 41/week @ 2025-09-16 54/week @ 2025-09-23 13/week @ 2025-09-30

124 downloads per month
Used in rocket_contrib

MIT license

5KB

r2d2_cypher

r2d2-cypher is a r2d2 connection pool for rusted-cypher.

Build Status

Example

extern crate r2d2;
extern crate r2d2_cypher;

use r2d2::{Config, Pool};
use r2d2_cypher::CypherConnectionManager;

pub fn main() {
  let db_url  = "http://neo4j:neo4j@127.0.0.1:7474/db/data";
  let manager = CypherConnectionManager{url:db_url.to_owned()};
  let config  = Config::builder().pool_size(5).build();
  let pool    = Pool::new(config, manager).unwrap();
  let client  = pool.clone().get().unwrap();
  let result  = client.cypher().exec("MATCH (n)-[r]->() RETURN n");
}

License

This project is licensed under the MIT license.

Dependencies

~10MB
~219K SLoC