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

#13 in #cypher

Download history 49/week @ 2024-04-07 56/week @ 2024-04-14 32/week @ 2024-04-21 5/week @ 2024-04-28 14/week @ 2024-05-05 10/week @ 2024-05-12 26/week @ 2024-05-19 36/week @ 2024-05-26 23/week @ 2024-06-02 15/week @ 2024-06-09 26/week @ 2024-06-16 34/week @ 2024-06-23 24/week @ 2024-06-30 35/week @ 2024-07-07 33/week @ 2024-07-14 27/week @ 2024-07-21

120 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.


lib.rs:

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

Build Status

Example

extern crate r2d2;
extern crate r2d2_cypher;

use r2d2::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 pool    = Pool::builder().max_size(5).build(manager).unwrap();
  let client  = pool.clone().get().unwrap();
  let result  = client.cypher().exec("MATCH (n)-[r]->() RETURN n");
}

Dependencies

~9–15MB
~230K SLoC