pub struct Connection { /* private fields */ }Expand description
Represents a connection to the NeuG database.
Implementations§
Source§impl Connection
impl Connection
Sourcepub fn execute(&self, query: &str) -> Result<QueryResult>
pub fn execute(&self, query: &str) -> Result<QueryResult>
Executes a Cypher query on the database.
Sourcepub fn execute_with_options(
&self,
query: &str,
access_mode: Option<AccessMode>,
_parameters: Option<&HashMap<String, String>>,
) -> Result<QueryResult>
pub fn execute_with_options( &self, query: &str, access_mode: Option<AccessMode>, _parameters: Option<&HashMap<String, String>>, ) -> Result<QueryResult>
Executes a Cypher query with a specific access mode and parameters.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnsafeUnpin for Connection
impl UnwindSafe for Connection
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