pub struct GqlQueryEngine<T: KeyValueStore> { /* private fields */ }
Expand description
Main GQL query engine with generic KeyValueStore backend
Implementations§
Source§impl<T: KeyValueStore + 'static> GqlQueryEngine<T>
impl<T: KeyValueStore + 'static> GqlQueryEngine<T>
pub fn new(storage: Arc<T>) -> Self
Sourcepub async fn execute_query(
&self,
query: &str,
context: QueryContext,
) -> Result<QueryResult>
pub async fn execute_query( &self, query: &str, context: QueryContext, ) -> Result<QueryResult>
Execute a GQL query
Sourcepub async fn execute_statement(
&self,
statement: &str,
context: QueryContext,
) -> Result<StatementResult>
pub async fn execute_statement( &self, statement: &str, context: QueryContext, ) -> Result<StatementResult>
Execute a GQL statement (DDL, DML)
Auto Trait Implementations§
impl<T> Freeze for GqlQueryEngine<T>
impl<T> RefUnwindSafe for GqlQueryEngine<T>where
T: RefUnwindSafe,
impl<T> Send for GqlQueryEngine<T>
impl<T> Sync for GqlQueryEngine<T>
impl<T> Unpin for GqlQueryEngine<T>
impl<T> UnwindSafe for GqlQueryEngine<T>where
T: RefUnwindSafe,
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