pub enum SqlAst {
Select(SqlSelect),
Insert(SqlInsert),
Update(SqlUpdate),
Delete(SqlDelete),
Set(SqlSet),
Show(SqlShow),
}Expand description
The AST for the SQL DML and query language
Variants§
Select(SqlSelect)
SELECT …
Insert(SqlInsert)
INSERT INTO …
Update(SqlUpdate)
UPDATE …
Delete(SqlDelete)
DELETE FROM …
Set(SqlSet)
SET var TO …
Show(SqlShow)
SHOW var
Implementations§
Source§impl SqlAst
impl SqlAst
pub fn qualify_vars(self) -> Self
pub fn find_unqualified_vars(self) -> SqlParseResult<Self>
Sourcepub fn resolve_sender(self, sender_identity: Identity) -> Self
pub fn resolve_sender(self, sender_identity: Identity) -> Self
Replace the :sender parameter with the Identity it represents
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SqlAst
impl RefUnwindSafe for SqlAst
impl Send for SqlAst
impl Sync for SqlAst
impl Unpin for SqlAst
impl UnwindSafe for SqlAst
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