r2d2_cypher

Crates.ior2d2_cypher
lib.rsr2d2_cypher
version0.4.0
sourcesrc
created_at2015-10-24 01:51:58.589051
updated_at2017-12-06 10:42:11.245392
descriptionCypher support for the r2d2 connection pool
homepage
repositoryhttps://github.com/flosse/r2d2-cypher
max_upload_size
id3292
size4,914
Markus Kohlhase (flosse)

documentation

README

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.

Commit count: 16

cargo fmt