[−][src]Struct neo4rs::Graph
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
impl !RefUnwindSafe for Graph
[src]
impl Send for Graph
[src]
impl Sync for Graph
[src]
impl Unpin for Graph
[src]
impl !UnwindSafe for Graph
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,