pub enum SqlElementType {
Show 33 variants
Root,
ExplainStatement,
TransactionStatement,
PragmaStatement,
ShowStatement,
SelectStatement,
VectorSearch,
Identifier,
Expression,
ErrorNode,
InsertStatement,
UpdateStatement,
DeleteStatement,
CreateStatement,
DropStatement,
AlterStatement,
JoinClause,
GroupByClause,
HavingClause,
OrderByClause,
LimitClause,
TableName,
ColumnName,
SelectItem,
Alias,
ColumnDefinition,
ValueList,
Assignment,
AlterAction,
ReturningClause,
ConflictClause,
Subquery,
FunctionCall,
}Expand description
Element types for the SQL language.
Variants§
Root
Root node.
ExplainStatement
EXPLAIN statement.
TransactionStatement
TRANSACTION statement.
PragmaStatement
PRAGMA statement.
ShowStatement
SHOW statement.
SelectStatement
SELECT statement.
VectorSearch
VECTOR search clause.
Identifier
Identifier.
Expression
Expression.
ErrorNode
Error node.
InsertStatement
INSERT statement.
UpdateStatement
UPDATE statement.
DeleteStatement
DELETE statement.
CreateStatement
CREATE statement.
DropStatement
DROP statement.
AlterStatement
ALTER statement.
JoinClause
JOIN clause.
GroupByClause
GROUP BY clause.
HavingClause
HAVING clause.
OrderByClause
ORDER BY clause.
LimitClause
LIMIT clause.
TableName
Table name.
ColumnName
Column name.
SelectItem
Select item.
Alias
Alias.
ColumnDefinition
Column definition.
ValueList
Value list.
Assignment
Assignment.
AlterAction
Alter action.
ReturningClause
RETURNING clause.
ConflictClause
ON CONFLICT clause.
Subquery
Subquery.
FunctionCall
Function call.
Trait Implementations§
Source§impl Clone for SqlElementType
impl Clone for SqlElementType
Source§fn clone(&self) -> SqlElementType
fn clone(&self) -> SqlElementType
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 SqlElementType
impl Debug for SqlElementType
Source§impl<'de> Deserialize<'de> for SqlElementType
impl<'de> Deserialize<'de> for SqlElementType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ElementType for SqlElementType
impl ElementType for SqlElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn role(&self) -> UniversalElementRole
fn role(&self) -> UniversalElementRole
Returns the general syntactic role of this element.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<SqlElementType> for SqlTokenType
impl From<SqlElementType> for SqlTokenType
Source§fn from(element: SqlElementType) -> Self
fn from(element: SqlElementType) -> Self
Converts to this type from the input type.
Source§impl From<SqlTokenType> for SqlElementType
impl From<SqlTokenType> for SqlElementType
Source§fn from(token: SqlTokenType) -> Self
fn from(token: SqlTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for SqlElementType
impl Hash for SqlElementType
Source§impl PartialEq for SqlElementType
impl PartialEq for SqlElementType
Source§impl Serialize for SqlElementType
impl Serialize for SqlElementType
impl Copy for SqlElementType
impl Eq for SqlElementType
impl StructuralPartialEq for SqlElementType
Auto Trait Implementations§
impl Freeze for SqlElementType
impl RefUnwindSafe for SqlElementType
impl Send for SqlElementType
impl Sync for SqlElementType
impl Unpin for SqlElementType
impl UnsafeUnpin for SqlElementType
impl UnwindSafe for SqlElementType
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