pub struct NestedQueryParser;Expand description
Parser for nested queries
Implementations§
Source§impl NestedQueryParser
impl NestedQueryParser
Sourcepub fn parse(query_str: &str) -> Query
pub fn parse(query_str: &str) -> Query
Parse a query that might contain nested subqueries
Syntax: “outer_goal WHERE (subquery WHERE conditions)”
Examples:
- “grandparent(?x, ?z) WHERE parent(?x, ?y) AND (parent(?y, ?z) WHERE child(?z, ?y))”
- “eligible(?p) WHERE (manager(?p) WHERE senior(?p))”
Sourcepub fn has_nested(query_str: &str) -> bool
pub fn has_nested(query_str: &str) -> bool
Check if a query contains nested subqueries
Auto Trait Implementations§
impl Freeze for NestedQueryParser
impl RefUnwindSafe for NestedQueryParser
impl Send for NestedQueryParser
impl Sync for NestedQueryParser
impl Unpin for NestedQueryParser
impl UnwindSafe for NestedQueryParser
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more