pub enum Statement {
Show 20 variants
Query(QueryExpr),
Insert(InsertExpr),
UpdateQuery(UpdateExpr),
DeleteQuery(DeleteExpr),
CreateType(CreateTypeExpr),
CreateLink(CreateLinkExpr),
AlterTable(AlterTableExpr),
DropTable(DropTableExpr),
CreateView(CreateViewExpr),
RefreshView(RefreshViewExpr),
DropView(DropViewExpr),
Union(UnionExpr),
Upsert(UpsertExpr),
Explain(Box<Statement>),
Begin,
Commit,
Rollback,
ListTypes,
Describe(String),
ListLinks,
}Expand description
Top-level PowQL statement.
Variants§
Query(QueryExpr)
Insert(InsertExpr)
UpdateQuery(UpdateExpr)
DeleteQuery(DeleteExpr)
CreateType(CreateTypeExpr)
CreateLink(CreateLinkExpr)
link <Owner>.<name> -> <Target> on <local> = <target>: declare a
persistent entity link (catalog v7). Lowers to Catalog::create_link.
AlterTable(AlterTableExpr)
DropTable(DropTableExpr)
CreateView(CreateViewExpr)
RefreshView(RefreshViewExpr)
DropView(DropViewExpr)
Union(UnionExpr)
Upsert(UpsertExpr)
Explain(Box<Statement>)
Begin
Commit
Rollback
ListTypes
schema — introspection: list every type (table) in the catalog.
Describe(String)
describe <Type> / schema <Type> — introspection: the columns and
indexes of one type.
ListLinks
schema links: introspection: list every declared entity link.
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