pub struct QueryExecutor<T: KeyValueStore + 'static> { /* private fields */ }
Expand description
クエリ実行器 with KeyValueStore backend
Implementations§
Source§impl<T: KeyValueStore + 'static> QueryExecutor<T>
impl<T: KeyValueStore + 'static> QueryExecutor<T>
pub fn new(storage: Arc<T>) -> Self
Sourcepub async fn execute_gql(
&self,
gql: &str,
context: &HashMap<String, Value>,
) -> Result<Vec<Value>, Box<dyn Error + Send + Sync>>
pub async fn execute_gql( &self, gql: &str, context: &HashMap<String, Value>, ) -> Result<Vec<Value>, Box<dyn Error + Send + Sync>>
GQLクエリを実行
Sourcepub async fn execute_plan(
&self,
plan: &str,
context: &HashMap<String, Value>,
) -> Result<Vec<Value>, Box<dyn Error + Send + Sync>>
pub async fn execute_plan( &self, plan: &str, context: &HashMap<String, Value>, ) -> Result<Vec<Value>, Box<dyn Error + Send + Sync>>
プランを実行
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for QueryExecutor<T>
impl<T> RefUnwindSafe for QueryExecutor<T>where
T: RefUnwindSafe,
impl<T> Send for QueryExecutor<T>
impl<T> Sync for QueryExecutor<T>
impl<T> Unpin for QueryExecutor<T>
impl<T> UnwindSafe for QueryExecutor<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