Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flosse/r2d2-cypher
Cypher support for the r2d2 connection pool
https://github.com/flosse/r2d2-cypher
cypher graph-database maintainer-wanted neo4j r2d2 rust
Last synced: 2 months ago
JSON representation
Cypher support for the r2d2 connection pool
- Host: GitHub
- URL: https://github.com/flosse/r2d2-cypher
- Owner: flosse
- Created: 2015-10-24T01:42:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-06T10:41:01.000Z (about 7 years ago)
- Last Synced: 2024-04-14T12:01:27.933Z (9 months ago)
- Topics: cypher, graph-database, maintainer-wanted, neo4j, r2d2, rust
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# r2d2_cypher
[r2d2-cypher](https://github.com/flosse/r2d2-cypher) is a
[r2d2](https://github.com/sfackler/r2d2) connection pool for
[rusted-cypher](https://github.com/livioribeiro/rusted-cypher).[![](http://meritbadge.herokuapp.com/r2d2_cypher)](https://crates.io/crates/r2d2_cypher)
[![Build Status](https://travis-ci.org/flosse/r2d2-cypher.svg?branch=master)](https://travis-ci.org/flosse/r2d2-cypher)## Example
```rust
extern crate r2d2;
extern crate r2d2_cypher;use r2d2::{Config, Pool};
use r2d2_cypher::CypherConnectionManager;pub fn main() {
let db_url = "http://neo4j:[email protected]: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.