pub enum Statement {
Show 31 variants
Select(SelectStmt),
Create(CreateStmt),
Update(UpdateStmt),
Upsert(UpsertStmt),
Delete(DeleteStmt),
Insert(InsertStmt),
Relate(RelateStmt),
Define(DefineStmt),
Remove(RemoveStmt),
Alter(AlterStmt),
Let(LetStmt),
Return(ReturnStmt),
IfElse(IfElseStmt),
For(ForStmt),
Block(Block),
LiveSelect(LiveSelectStmt),
Kill(KillStmt),
Use(UseStmt),
Info(InfoStmt),
Show(ShowStmt),
Rebuild(RebuildStmt),
Throw(ThrowStmt),
Break(BreakStmt),
Continue(ContinueStmt),
Begin(BeginStmt),
Cancel(CancelStmt),
Commit(CommitStmt),
Sleep(SleepStmt),
Option(OptionStmt),
Expr(Spanned<Expr>),
Partial(PartialNode),
}Expand description
One SurrealQL statement, dispatched on by the analyzers.
Variants§
Select(SelectStmt)
SELECT.
Create(CreateStmt)
CREATE.
Update(UpdateStmt)
UPDATE.
Upsert(UpsertStmt)
UPSERT.
Delete(DeleteStmt)
DELETE.
Insert(InsertStmt)
INSERT.
Relate(RelateStmt)
RELATE.
Define(DefineStmt)
DEFINE ....
Remove(RemoveStmt)
REMOVE ....
Alter(AlterStmt)
ALTER ....
Let(LetStmt)
LET.
Return(ReturnStmt)
RETURN.
IfElse(IfElseStmt)
IF/ELSE.
For(ForStmt)
FOR.
Block(Block)
A bare { ...; ... } block in statement position.
LiveSelect(LiveSelectStmt)
LIVE SELECT.
Kill(KillStmt)
KILL.
Use(UseStmt)
USE.
Info(InfoStmt)
INFO FOR ....
Show(ShowStmt)
SHOW CHANGES.
Rebuild(RebuildStmt)
REBUILD INDEX.
Throw(ThrowStmt)
THROW.
Break(BreakStmt)
BREAK.
Continue(ContinueStmt)
CONTINUE.
Begin(BeginStmt)
BEGIN.
Cancel(CancelStmt)
CANCEL.
Commit(CommitStmt)
COMMIT.
Sleep(SleepStmt)
SLEEP.
Option(OptionStmt)
OPTION.
Expr(Spanned<Expr>)
A bare expression in statement position — most commonly the trailing
value of a block ({ LET $x = 1; $x + 1 }).
Partial(PartialNode)
A statement that failed to lower.
Trait Implementations§
impl StructuralPartialEq for Statement
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnsafeUnpin for Statement
impl UnwindSafe for Statement
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