pub struct GraphClient { /* private fields */ }
Implementations§
Source§impl GraphClient
impl GraphClient
pub fn connect<T: AsRef<str>>(endpoint: T) -> Result<Self, GraphError>
Sourcepub fn query(&self) -> CypherQuery<'_>
pub fn query(&self) -> CypherQuery<'_>
Creates a new CypherQuery
Sourcepub fn exec<S: Into<Statement>>(
&self,
statement: S,
) -> Result<CypherResult, GraphError>
pub fn exec<S: Into<Statement>>( &self, statement: S, ) -> Result<CypherResult, GraphError>
Executes the given Statement
Parameter can be anything that implements Into<Statement>
, Into<String>
or Statement
itself
Sourcepub fn transaction(&self) -> Transaction<'_, TransactionCreated>
pub fn transaction(&self) -> Transaction<'_, TransactionCreated>
Creates a new Transaction
pub fn neo4j_version(&self) -> &Version
Auto Trait Implementations§
impl Freeze for GraphClient
impl !RefUnwindSafe for GraphClient
impl Send for GraphClient
impl !Sync for GraphClient
impl Unpin for GraphClient
impl !UnwindSafe for GraphClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more