Struct rusted_cypher::cypher::Cypher
[−]
[src]
pub struct Cypher { /* fields omitted */ }
Represents the cypher endpoint of a neo4j server
The Cypher
struct holds information about the cypher enpoint. It is used to create the queries
that are sent to the server.
Methods
impl Cypher
[src]
fn new(endpoint: Url, client: Client, headers: Headers) -> Self
Creates a new Cypher
Its arguments are the cypher transaction endpoint and the HTTP headers containing HTTP Basic Authentication, if needed.
fn query(&self) -> CypherQuery
Creates a new CypherQuery
fn exec<S: Into<Statement>>(
&self,
statement: S
) -> Result<CypherResult, GraphError>
&self,
statement: S
) -> Result<CypherResult, GraphError>
Executes the given Statement
Parameter can be anything that implements Into<Statement>
, Into<String>
or Statement
itself
fn transaction(&self) -> Transaction<Created>
Creates a new Transaction