pub enum SqlExprToken {
SelfAlias,
OtherAlias,
AuxParam(String),
UnresolvedArg,
Literal(String),
Arg(SqlArg),
Alias(String),
Predicate {
columns: Vec<PredicateColumn>,
args: Vec<SqlArg>,
},
}Expand description
Token that makes up SqlExpr. The expression is a string of tokens. To turn the expression into SQL, each
Variants§
SelfAlias
Self alias in expression
OtherAlias
Other alias in expression
AuxParam(String)
Aux param in expression
UnresolvedArg
Unresolved arguent in expression
Literal(String)
Literal raw SQL in expression
Arg(SqlArg)
Argument in expression
Alias(String)
Canonical alias in expression
Predicate
Predicate in expression A predicate token has been introduced to improve SQL formatting. Depending on the number of columns and arguments this translates different SQL.
Trait Implementations§
Source§impl Clone for SqlExprToken
impl Clone for SqlExprToken
Source§fn clone(&self) -> SqlExprToken
fn clone(&self) -> SqlExprToken
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 moreSource§impl Debug for SqlExprToken
impl Debug for SqlExprToken
Auto Trait Implementations§
impl Freeze for SqlExprToken
impl RefUnwindSafe for SqlExprToken
impl Send for SqlExprToken
impl Sync for SqlExprToken
impl Unpin for SqlExprToken
impl UnwindSafe for SqlExprToken
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