[][src]Struct neo4rs::Graph

pub struct Graph { /* fields omitted */ }

A neo4j database abstraction

Implementations

impl Graph[src]

pub async fn connect(config: Config) -> Result<Self>[src]

Connects to the database with configurations provided, you can build a config using config

pub async fn new(uri: &str, user: &str, password: &str) -> Result<Self>[src]

Connects to the database with default configurations

pub async fn start_txn(&self) -> Result<Txn>[src]

Starts a new transaction, all queries that needs to be run/executed within the transaction should be executed using either Txn::run or Txn::execute

pub async fn run(&self, q: Query) -> Result<()>[src]

Runs a query using a connection from the connection pool, it doesn't return any RowStream as the run abstraction discards any stream.

Use Graph::run for cases where you just want a write operation

use Graph::execute when you are interested in the result stream

pub async fn execute(&self, q: Query) -> Result<RowStream>[src]

Executes a query and returns a RowStream

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.