sql::ast

Trait Visit

pub trait Visit {
    // Required method
    fn visit<V>(&self, visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
       where V: Visitor;
}
Expand description

A type that can be visited by a Visitor. See Visitor for recursively visiting parsed SQL statements.

§Note

This trait should be automatically derived for sqlparser AST nodes using the Visit proc macro.

#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]

Required Methods§

fn visit<V>(&self, visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl Visit for bool

§

fn visit<V>(&self, _visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

§

impl Visit for char

§

fn visit<V>(&self, _visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

§

impl Visit for i8

§

fn visit<V>(&self, _visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

§

impl Visit for i16

§

fn visit<V>(&self, _visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

§

impl Visit for i32

§

fn visit<V>(&self, _visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

§

impl Visit for i64

§

fn visit<V>(&self, _visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

§

impl Visit for u8

§

fn visit<V>(&self, _visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

§

impl Visit for u16

§

fn visit<V>(&self, _visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

§

impl Visit for u32

§

fn visit<V>(&self, _visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

§

impl Visit for u64

§

fn visit<V>(&self, _visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

§

impl Visit for String

§

fn visit<V>(&self, _visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

§

impl Visit for AddColumnLocation

§

fn visit<V>(&self, visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

§

impl Visit for FulltextAnalyzer

§

fn visit<V>(&self, visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

§

impl Visit for FulltextOptions

§

fn visit<V>(&self, visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

§

impl<T> Visit for Option<T>
where T: Visit,

§

fn visit<V>(&self, visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

§

impl<T> Visit for Box<T>
where T: Visit,

§

fn visit<V>(&self, visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

§

impl<T> Visit for Vec<T>
where T: Visit,

§

fn visit<V>(&self, visitor: &mut V) -> ControlFlow<<V as Visitor>::Break>
where V: Visitor,

Implementors§

source§

impl Visit for Admin

source§

impl Visit for sql::statements::alter::AlterTableOperation

source§

impl Visit for Copy

source§

impl Visit for CopyDatabase

source§

impl Visit for CopyTable

source§

impl Visit for sql::statements::create::TableConstraint

source§

impl Visit for ShowKind

source§

impl Visit for sql::statements::statement::Statement

source§

impl Visit for Tql

§

impl Visit for BinaryOperator

§

impl Visit for ColumnOption

§

impl Visit for DataType

§

impl Visit for Expr

§

impl Visit for FunctionArg

§

impl Visit for FunctionArgExpr

§

impl Visit for sql::ast::TableConstraint

§

impl Visit for TimezoneInfo

§

impl Visit for Value

source§

impl Visit for AlterTable

source§

impl Visit for ChangeTableOption

source§

impl Visit for CopyDatabaseArgument

source§

impl Visit for CopyTableArgument

source§

impl Visit for Column

source§

impl Visit for ColumnExtensions

source§

impl Visit for CreateDatabase

source§

impl Visit for CreateExternalTable

source§

impl Visit for CreateFlow

source§

impl Visit for CreateTable

source§

impl Visit for CreateTableLike

source§

impl Visit for CreateView

source§

impl Visit for PartitionEntry

source§

impl Visit for Partitions

source§

impl Visit for Delete

source§

impl Visit for DescribeTable

source§

impl Visit for DropDatabase

source§

impl Visit for DropFlow

source§

impl Visit for DropTable

source§

impl Visit for DropView

source§

impl Visit for Explain

source§

impl Visit for Insert

source§

impl Visit for OptionMap

source§

impl Visit for sql::statements::query::Query

source§

impl Visit for SetVariables

source§

impl Visit for ShowColumns

source§

impl Visit for ShowCreateDatabase

source§

impl Visit for ShowCreateFlow

source§

impl Visit for ShowCreateTable

source§

impl Visit for ShowCreateView

source§

impl Visit for ShowDatabases

source§

impl Visit for ShowFlows

source§

impl Visit for ShowIndex

source§

impl Visit for ShowStatus

source§

impl Visit for ShowTableStatus

source§

impl Visit for ShowTables

source§

impl Visit for ShowVariables

source§

impl Visit for ShowViews

source§

impl Visit for TqlAnalyze

source§

impl Visit for TqlEval

source§

impl Visit for TqlExplain

source§

impl Visit for TruncateTable

§

impl Visit for ColumnDef

§

impl Visit for ColumnOptionDef

§

impl Visit for Function

§

impl Visit for Ident

§

impl Visit for ObjectName

§

impl Visit for SqlOption

§

impl Visit for Action

§

impl Visit for AddDropSync

§

impl Visit for AlterColumnOperation

§

impl Visit for AlterIndexOperation

§

impl Visit for AlterRoleOperation

§

impl Visit for AlterTableOperation

§

impl Visit for AnalyzeFormat

§

impl Visit for ArgMode

§

impl Visit for Array

§

impl Visit for ArrayAgg

§

impl Visit for ArrayElemTypeDef

§

impl Visit for Assignment

§

impl Visit for AttachDuckDBDatabaseOption

§

impl Visit for CastFormat

§

impl Visit for CharLengthUnits

§

impl Visit for CharacterLength

§

impl Visit for CloseCursor

§

impl Visit for CommentObject

§

impl Visit for ConflictTarget

§

impl Visit for ConstraintCharacteristics

§

impl Visit for ContextModifier

§

impl Visit for CopyLegacyCsvOption

§

impl Visit for CopyLegacyOption

§

impl Visit for CopyOption

§

impl Visit for CopySource

§

impl Visit for CopyTarget

§

impl Visit for CreateFunctionBody

§

impl Visit for CreateFunctionUsing

§

impl Visit for CreateTableBuilder

§

impl Visit for CreateTableOptions

§

impl Visit for Cte

§

impl Visit for CteAsMaterialized

§

impl Visit for DataLoadingOption

§

impl Visit for DataLoadingOptionType

§

impl Visit for DataLoadingOptions

§

impl Visit for DateTimeField

§

impl Visit for Declare

§

impl Visit for DeclareAssignment

§

impl Visit for DeclareType

§

impl Visit for DeferrableInitial

§

impl Visit for DescribeAlias

§

impl Visit for DictionaryField

§

impl Visit for DiscardObject

§

impl Visit for Distinct

§

impl Visit for DoUpdate

§

impl Visit for DollarQuotedString

§

impl Visit for DropFunctionDesc

§

impl Visit for ExactNumberInfo

§

impl Visit for ExceptSelectItem

§

impl Visit for ExcludeSelectItem

§

impl Visit for Fetch

§

impl Visit for FetchDirection

§

impl Visit for FileFormat

§

impl Visit for FlushLocation

§

impl Visit for FlushType

§

impl Visit for ForClause

§

impl Visit for ForJson

§

impl Visit for ForXml

§

impl Visit for FromTable

§

impl Visit for FunctionArgOperator

§

impl Visit for FunctionBehavior

§

impl Visit for FunctionCalledOnNull

§

impl Visit for FunctionDefinition

§

impl Visit for FunctionParallel

§

impl Visit for GeneratedAs

§

impl Visit for GeneratedExpressionMode

§

impl Visit for GrantObjects

§

impl Visit for GroupByExpr

§

impl Visit for HiveDelimiter

§

impl Visit for HiveDescribeFormat

§

impl Visit for HiveDistributionStyle

§

impl Visit for HiveFormat

§

impl Visit for HiveIOFormat

§

impl Visit for HiveRowDelimiter

§

impl Visit for HiveRowFormat

§

impl Visit for HiveSetLocation

§

impl Visit for IdentWithAlias

§

impl Visit for IndexOption

§

impl Visit for IndexType

§

impl Visit for InsertAliases

§

impl Visit for Interval

§

impl Visit for Join

§

impl Visit for JoinConstraint

§

impl Visit for JoinOperator

§

impl Visit for JsonOperator

§

impl Visit for JsonTableColumn

§

impl Visit for JsonTableColumnErrorHandling

§

impl Visit for KeyOrIndexDisplay

§

impl Visit for Keyword

§

impl Visit for KillType

§

impl Visit for LateralView

§

impl Visit for ListAgg

§

impl Visit for ListAggOnOverflow

§

impl Visit for LockClause

§

impl Visit for LockTable

§

impl Visit for LockTableType

§

impl Visit for LockType

§

impl Visit for MacroArg

§

impl Visit for MacroDefinition

§

impl Visit for MapAccessKey

§

impl Visit for MapAccessSyntax

§

impl Visit for MergeClause

§

impl Visit for MinMaxValue

§

impl Visit for MySQLColumnPosition

§

impl Visit for MysqlInsertPriority

§

impl Visit for NamedWindowDefinition

§

impl Visit for NonBlock

§

impl Visit for NullTreatment

§

impl Visit for ObjectType

§

impl Visit for Offset

§

impl Visit for OffsetRows

§

impl Visit for OnCommit

§

impl Visit for OnConflict

§

impl Visit for OnConflictAction

§

impl Visit for OnInsert

§

impl Visit for OperateFunctionArg

§

impl Visit for OrderByExpr

§

impl Visit for Partition

§

impl Visit for Password

§

impl Visit for Privileges

§

impl Visit for ProcedureParam

§

impl Visit for Query

§

impl Visit for ReferentialAction

§

impl Visit for RenameSelectItem

§

impl Visit for ReplaceSelectElement

§

impl Visit for ReplaceSelectItem

§

impl Visit for ResetConfig

§

impl Visit for RoleOption

§

impl Visit for SchemaName

§

impl Visit for SearchModifier

§

impl Visit for SecretOption

§

impl Visit for Select

§

impl Visit for SelectInto

§

impl Visit for SelectItem

§

impl Visit for SequenceOptions

§

impl Visit for SetConfigValue

§

impl Visit for SetExpr

§

impl Visit for SetOperator

§

impl Visit for SetQuantifier

§

impl Visit for ShowCreateObject

§

impl Visit for ShowStatementFilter

§

impl Visit for SqliteOnConflict

§

impl Visit for StageLoadSelectItem

§

impl Visit for StageParamsObject

§

impl Visit for Statement

§

impl Visit for StructField

§

impl Visit for Table

§

impl Visit for TableAlias

§

impl Visit for TableFactor

§

impl Visit for TableVersion

§

impl Visit for TableWithJoins

§

impl Visit for Token

§

impl Visit for Top

§

impl Visit for TopQuantity

§

impl Visit for TransactionAccessMode

§

impl Visit for TransactionIsolationLevel

§

impl Visit for TransactionMode

§

impl Visit for TransactionModifier

§

impl Visit for TrimWhereField

§

impl Visit for UnaryOperator

§

impl Visit for UserDefinedTypeCompositeAttributeDef

§

impl Visit for UserDefinedTypeRepresentation

§

impl Visit for ValueTableMode

§

impl Visit for Values

§

impl Visit for ViewColumnDef

§

impl Visit for Whitespace

§

impl Visit for WildcardAdditionalOptions

§

impl Visit for WindowFrame

§

impl Visit for WindowFrameBound

§

impl Visit for WindowFrameUnits

§

impl Visit for WindowSpec

§

impl Visit for WindowType

§

impl Visit for With

§

impl Visit for Word