pub struct QueryBuilder<'a, Output, T: Display, G: HasGraphSchema> { /* private fields */ }Expand description
A Builder-pattern struct that allows creating and executing queries on a graph
Implementations§
Source§impl<'a, Output, T: Display, G: HasGraphSchema> QueryBuilder<'a, Output, T, G>
impl<'a, Output, T: Display, G: HasGraphSchema> QueryBuilder<'a, Output, T, G>
Sourcepub fn with_params(self, params: &'a HashMap<String, String>) -> Self
pub fn with_params(self, params: &'a HashMap<String, String>) -> Self
Sourcepub fn with_timeout(self, timeout: i64) -> Self
pub fn with_timeout(self, timeout: i64) -> Self
Specify a timeout after which to abort the query
§Arguments
timeout: the timeout after which the server is allowed to abort or throw this request, in milliseconds, when that happens the server will return a timeout error
Source§impl<'a, T: Display> QueryBuilder<'a, QueryResult<LazyResultSet<'a>>, T, SyncGraph>
impl<'a, T: Display> QueryBuilder<'a, QueryResult<LazyResultSet<'a>>, T, SyncGraph>
Sourcepub fn execute(self) -> FalkorResult<QueryResult<LazyResultSet<'a>>>
pub fn execute(self) -> FalkorResult<QueryResult<LazyResultSet<'a>>>
Executes the query, retuning a QueryResult, with a LazyResultSet as its data member
Source§impl<'a, T: Display> QueryBuilder<'a, QueryResult<LazyResultSet<'a>>, T, AsyncGraph>
impl<'a, T: Display> QueryBuilder<'a, QueryResult<LazyResultSet<'a>>, T, AsyncGraph>
Sourcepub async fn execute(self) -> FalkorResult<QueryResult<LazyResultSet<'a>>>
pub async fn execute(self) -> FalkorResult<QueryResult<LazyResultSet<'a>>>
Executes the query, retuning a QueryResult, with a LazyResultSet as its data member
Source§impl<T: Display> QueryBuilder<'_, ExecutionPlan, T, SyncGraph>
impl<T: Display> QueryBuilder<'_, ExecutionPlan, T, SyncGraph>
Sourcepub fn execute(self) -> FalkorResult<ExecutionPlan>
pub fn execute(self) -> FalkorResult<ExecutionPlan>
Executes the query, returning an ExecutionPlan from the data returned
Source§impl<'a, T: Display> QueryBuilder<'a, ExecutionPlan, T, AsyncGraph>
impl<'a, T: Display> QueryBuilder<'a, ExecutionPlan, T, AsyncGraph>
Sourcepub async fn execute(self) -> FalkorResult<ExecutionPlan>
pub async fn execute(self) -> FalkorResult<ExecutionPlan>
Executes the query, returning an ExecutionPlan from the data returned
Auto Trait Implementations§
impl<'a, Output, T, G> Freeze for QueryBuilder<'a, Output, T, G>where
T: Freeze,
impl<'a, Output, T, G> RefUnwindSafe for QueryBuilder<'a, Output, T, G>
impl<'a, Output, T, G> Send for QueryBuilder<'a, Output, T, G>
impl<'a, Output, T, G> Sync for QueryBuilder<'a, Output, T, G>
impl<'a, Output, T, G> Unpin for QueryBuilder<'a, Output, T, G>
impl<'a, Output, T, G> !UnwindSafe for QueryBuilder<'a, Output, T, G>
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