docs.rs failed to build rusted_cypher-0.6.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
rusted_cypher-1.1.0
rusted_cypher
Rust crate for accessing the cypher endpoint of a neo4j server
This is a prototype for accessing the cypher endpoint of a neo4j server, like a sql driver for a relational database.
You can execute queries inside a transaction or simply execute queries that commit immediately.
Examples
Code in examples are assumed to be wrapped in:
extern crate rusted_cypher;
use BTreeMap;
use GraphClient;
use Statement;
Performing Queries
let mut query = graph.cypher.query;
// Statement implements From<&str>
query.add_statement;
let statement = new
.with_param;
query.add_statement;
query.send.unwrap;
graph.cypher.exec
.unwrap;
let result = graph.cypher.exec
.unwrap;
assert_eq!;
for row in result.rows
graph.cypher.exec.unwrap;
With Transactions
let transaction = graph.cypher.transaction
.with_statement;
let = transaction.begin.unwrap;
// Use `exec` to execute a single statement
transaction.exec
.unwrap;
// use `add_statement` (or `with_statement`) and `send` to executes multiple statements
let stmt = new
.with_param;
transaction.add_statement;
let results = transaction.send.unwrap;
assert_eq!;
transaction.rollback;
License: MIT