pub struct Client { /* private fields */ }Expand description
Zawgl graph database client
Implementations§
Source§impl Client
impl Client
pub async fn new(address: &str) -> Self
pub fn is_staled(&self) -> bool
Sourcepub async fn execute_cypher_request_with_parameters(
&mut self,
db: &str,
query: &str,
params: Value,
) -> Result<Value, Canceled>
pub async fn execute_cypher_request_with_parameters( &mut self, db: &str, query: &str, params: Value, ) -> Result<Value, Canceled>
Executes a cypher request with parameters
Sourcepub async fn execute_cypher_request(
&mut self,
db: &str,
query: &str,
) -> Result<Value, Canceled>
pub async fn execute_cypher_request( &mut self, db: &str, query: &str, ) -> Result<Value, Canceled>
Executes a cypher request
Sourcepub async fn create_database(&mut self, db_name: &str)
pub async fn create_database(&mut self, db_name: &str)
Create database request
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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