pub struct QueryStatement {Show 13 fields
pub match_clauses: Vec<MatchClause>,
pub where_clause: Option<WhereClause>,
pub set_clauses: Vec<SetClause>,
pub remove_clauses: Vec<RemoveClause>,
pub with_clauses: Vec<WithClause>,
pub unwind_clauses: Vec<UnwindClause>,
pub merge_clauses: Vec<MergeClause>,
pub create_clauses: Vec<InsertStatement>,
pub delete_clauses: Vec<DeleteStatement>,
pub return_clause: ReturnClause,
pub having_clause: Option<HavingClause>,
pub ordered_clauses: Vec<QueryClause>,
pub span: Option<SourceSpan>,
}Expand description
A query statement.
Fields§
§match_clauses: Vec<MatchClause>MATCH clauses (regular and optional).
where_clause: Option<WhereClause>Optional WHERE clause.
set_clauses: Vec<SetClause>SET clauses for property updates.
remove_clauses: Vec<RemoveClause>REMOVE clauses for label/property removal.
with_clauses: Vec<WithClause>WITH clauses for query chaining.
unwind_clauses: Vec<UnwindClause>UNWIND clauses for list expansion.
merge_clauses: Vec<MergeClause>MERGE clauses for conditional create/match.
create_clauses: Vec<InsertStatement>CREATE clauses (Cypher-style data modification within query).
delete_clauses: Vec<DeleteStatement>DELETE clauses (data removal within query).
return_clause: ReturnClauseRequired RETURN clause.
having_clause: Option<HavingClause>Optional HAVING clause (filters aggregate results).
ordered_clauses: Vec<QueryClause>Ordered clauses preserving source order (for UNWIND/FOR variable scoping).
span: Option<SourceSpan>Source span in the original query.
Trait Implementations§
Source§impl Clone for QueryStatement
impl Clone for QueryStatement
Source§fn clone(&self) -> QueryStatement
fn clone(&self) -> QueryStatement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QueryStatement
impl RefUnwindSafe for QueryStatement
impl Send for QueryStatement
impl Sync for QueryStatement
impl Unpin for QueryStatement
impl UnsafeUnpin for QueryStatement
impl UnwindSafe for QueryStatement
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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