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

#15 in #neo4j

Download history 71/week @ 2023-12-11 13/week @ 2023-12-18 28/week @ 2023-12-25 13/week @ 2024-01-08 29/week @ 2024-01-15 19/week @ 2024-01-22 7/week @ 2024-01-29 30/week @ 2024-02-05 34/week @ 2024-02-12 27/week @ 2024-02-19 34/week @ 2024-02-26 21/week @ 2024-03-04 34/week @ 2024-03-11 32/week @ 2024-03-18 38/week @ 2024-03-25

126 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–17MB
~243K SLoC