sqlparser::ast

Trait Visit

Source
pub trait Visit {
    // Required method
    fn visit<V: Visitor>(&self, visitor: &mut V) -> ControlFlow<V::Break>;
}
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§

Source

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

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§

Source§

impl Visit for bool

Source§

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

Source§

impl Visit for char

Source§

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

Source§

impl Visit for i8

Source§

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

Source§

impl Visit for i16

Source§

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

Source§

impl Visit for i32

Source§

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

Source§

impl Visit for i64

Source§

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

Source§

impl Visit for u8

Source§

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

Source§

impl Visit for u16

Source§

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

Source§

impl Visit for u32

Source§

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

Source§

impl Visit for u64

Source§

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

Source§

impl Visit for String

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§

Source§

impl Visit for Keyword

Source§

impl Visit for Token

Source§

impl Visit for Whitespace

Source§

impl Visit for Action

Source§

impl Visit for AddDropSync

Source§

impl Visit for AfterMatchSkip

Source§

impl Visit for AlterColumnOperation

Source§

impl Visit for AlterIndexOperation

Source§

impl Visit for AlterPolicyOperation

Source§

impl Visit for AlterRoleOperation

Source§

impl Visit for AlterTableOperation

Source§

impl Visit for AnalyzeFormat

Source§

impl Visit for ArgMode

Source§

impl Visit for ArrayElemTypeDef

Source§

impl Visit for AssignmentTarget

Source§

impl Visit for AttachDuckDBDatabaseOption

Source§

impl Visit for BinaryOperator

Source§

impl Visit for CastFormat

Source§

impl Visit for CastKind

Source§

impl Visit for CeilFloorKind

Source§

impl Visit for CharLengthUnits

Source§

impl Visit for CharacterLength

Source§

impl Visit for CloseCursor

Source§

impl Visit for ColumnOption

Source§

impl Visit for ColumnPolicy

Source§

impl Visit for CommentDef

Source§

impl Visit for CommentObject

Source§

impl Visit for ConflictTarget

Source§

impl Visit for ContextModifier

Source§

impl Visit for CopyLegacyCsvOption

Source§

impl Visit for CopyLegacyOption

Source§

impl Visit for CopyOption

Source§

impl Visit for CopySource

Source§

impl Visit for CopyTarget

Source§

impl Visit for CreateFunctionBody

Source§

impl Visit for CreateFunctionUsing

Source§

impl Visit for CreatePolicyCommand

Source§

impl Visit for CreatePolicyType

Source§

impl Visit for CreateTableOptions

Source§

impl Visit for CteAsMaterialized

Source§

impl Visit for DataType

Source§

impl Visit for DateTimeField

Source§

impl Visit for DeclareAssignment

Source§

impl Visit for DeclareType

Source§

impl Visit for Deduplicate

Source§

impl Visit for DeferrableInitial

Source§

impl Visit for DescribeAlias

Source§

impl Visit for DiscardObject

Source§

impl Visit for Distinct

Source§

impl Visit for DuplicateTreatment

Source§

impl Visit for EmptyMatchesMode

Source§

impl Visit for ExactNumberInfo

Source§

impl Visit for ExcludeSelectItem

Source§

impl Visit for Expr

Source§

impl Visit for ExtractSyntax

Source§

impl Visit for FetchDirection

Source§

impl Visit for FileFormat

Source§

impl Visit for FlushLocation

Source§

impl Visit for FlushType

Source§

impl Visit for ForClause

Source§

impl Visit for ForJson

Source§

impl Visit for ForXml

Source§

impl Visit for FormatClause

Source§

impl Visit for FromTable

Source§

impl Visit for FunctionArg

Source§

impl Visit for FunctionArgExpr

Source§

impl Visit for FunctionArgOperator

Source§

impl Visit for FunctionArgumentClause

Source§

impl Visit for FunctionArguments

Source§

impl Visit for FunctionBehavior

Source§

impl Visit for FunctionCalledOnNull

Source§

impl Visit for FunctionDeterminismSpecifier

Source§

impl Visit for FunctionParallel

Source§

impl Visit for GeneratedAs

Source§

impl Visit for GeneratedExpressionMode

Source§

impl Visit for GrantObjects

Source§

impl Visit for GroupByExpr

Source§

impl Visit for GroupByWithModifier

Source§

impl Visit for HavingBoundKind

Source§

impl Visit for HiveDelimiter

Source§

impl Visit for HiveDescribeFormat

Source§

impl Visit for HiveDistributionStyle

Source§

impl Visit for HiveIOFormat

Source§

impl Visit for HiveRowFormat

Source§

impl Visit for IdentityPropertyFormatKind

Source§

impl Visit for IdentityPropertyKind

Source§

impl Visit for IdentityPropertyOrder

Source§

impl Visit for IndexOption

Source§

impl Visit for IndexType

Source§

impl Visit for JoinConstraint

Source§

impl Visit for JoinOperator

Source§

impl Visit for JsonPathElem

Source§

impl Visit for JsonTableColumn

Source§

impl Visit for JsonTableColumnErrorHandling

Source§

impl Visit for KeyOrIndexDisplay

Source§

impl Visit for KillType

Source§

impl Visit for ListAggOnOverflow

Source§

impl Visit for LockTableType

Source§

impl Visit for LockType

Source§

impl Visit for MacroDefinition

Source§

impl Visit for MapAccessSyntax

Source§

impl Visit for MatchRecognizePattern

Source§

impl Visit for MatchRecognizeSymbol

Source§

impl Visit for MergeAction

Source§

impl Visit for MergeClauseKind

Source§

impl Visit for MergeInsertKind

Source§

impl Visit for MinMaxValue

Source§

impl Visit for MySQLColumnPosition

Source§

impl Visit for MysqlInsertPriority

Source§

impl Visit for NamedWindowExpr

Source§

impl Visit for NonBlock

Source§

impl Visit for NullTreatment

Source§

impl Visit for ObjectType

Source§

impl Visit for OffsetRows

Source§

impl Visit for OnCommit

Source§

impl Visit for OnConflictAction

Source§

impl Visit for OnInsert

Source§

impl Visit for Owner

Source§

impl Visit for Partition

Source§

impl Visit for PartitionRangeDirection

Source§

impl Visit for Password

Source§

impl Visit for PivotValueSource

Source§

impl Visit for Privileges

Source§

impl Visit for ReferentialAction

Source§

impl Visit for RenameSelectItem

Source§

impl Visit for RepetitionQuantifier

Source§

impl Visit for ResetConfig

Source§

impl Visit for RoleOption

Source§

impl Visit for RowsPerMatch

Source§

impl Visit for SchemaName

Source§

impl Visit for SearchModifier

Source§

impl Visit for SelectItem

Source§

impl Visit for SequenceOptions

Source§

impl Visit for SetConfigValue

Source§

impl Visit for SetExpr

Source§

impl Visit for SetOperator

Source§

impl Visit for SetQuantifier

Source§

impl Visit for ShowClause

Source§

impl Visit for ShowCreateObject

Source§

impl Visit for ShowStatementFilter

Source§

impl Visit for SqlOption

Source§

impl Visit for SqliteOnConflict

Source§

impl Visit for Statement

Source§

impl Visit for StructBracketKind

Source§

impl Visit for Subscript

Source§

impl Visit for TableConstraint

Source§

impl Visit for TableFactor

Source§

impl Visit for TableOptionsClustered

Source§

impl Visit for TableVersion

Source§

impl Visit for TimezoneInfo

Source§

impl Visit for TopQuantity

Source§

impl Visit for TransactionAccessMode

Source§

impl Visit for TransactionIsolationLevel

Source§

impl Visit for TransactionMode

Source§

impl Visit for TransactionModifier

Source§

impl Visit for TriggerEvent

Source§

impl Visit for TriggerExecBodyType

Source§

impl Visit for TriggerObject

Source§

impl Visit for TriggerPeriod

Source§

impl Visit for TriggerReferencingType

Source§

impl Visit for TrimWhereField

Source§

impl Visit for TruncateCascadeOption

Source§

impl Visit for TruncateIdentityOption

Source§

impl Visit for UnaryOperator

Source§

impl Visit for Use

Source§

impl Visit for UserDefinedTypeRepresentation

Source§

impl Visit for Value

Source§

impl Visit for ValueTableMode

Source§

impl Visit for WindowFrameBound

Source§

impl Visit for WindowFrameUnits

Source§

impl Visit for WindowType

Source§

impl Visit for DataLoadingOptionType

Source§

impl Visit for Word

Source§

impl Visit for CreateTableBuilder

Source§

impl Visit for DataLoadingOption

Source§

impl Visit for DataLoadingOptions

Source§

impl Visit for StageLoadSelectItem

Source§

impl Visit for StageParamsObject

Source§

impl Visit for Array

Source§

impl Visit for Assignment

Source§

impl Visit for ClusteredBy

Source§

impl Visit for ClusteredIndex

Source§

impl Visit for ColumnDef

Source§

impl Visit for ColumnOptionDef

Source§

impl Visit for ColumnPolicyProperty

Source§

impl Visit for ConnectBy

Source§

impl Visit for ConstraintCharacteristics

Source§

impl Visit for CreateIndex

Source§

impl Visit for CreateTable

Source§

impl Visit for Cte

Source§

impl Visit for Declare

Source§

impl Visit for Delete

Source§

impl Visit for DictionaryField

Source§

impl Visit for DoUpdate

Source§

impl Visit for DollarQuotedString

Source§

impl Visit for ExceptSelectItem

Source§

impl Visit for ExprWithAlias

Source§

impl Visit for Fetch

Source§

impl Visit for Function

Source§

impl Visit for FunctionArgumentList

Source§

impl Visit for FunctionDesc

Source§

impl Visit for HavingBound

Source§

impl Visit for HiveFormat

Source§

impl Visit for HiveRowDelimiter

Source§

impl Visit for HiveSetLocation

Source§

impl Visit for Ident

Source§

impl Visit for IdentWithAlias

Source§

impl Visit for IdentityParameters

Source§

impl Visit for IdentityProperty

Source§

impl Visit for IlikeSelectItem

Source§

impl Visit for Insert

Source§

impl Visit for InsertAliases

Source§

impl Visit for Interpolate

Source§

impl Visit for InterpolateExpr

Source§

impl Visit for Interval

Source§

impl Visit for Join

Source§

impl Visit for JsonPath

Source§

impl Visit for JsonTableNamedColumn

Source§

impl Visit for JsonTableNestedColumn

Source§

impl Visit for LambdaFunction

Source§

impl Visit for LateralView

Source§

impl Visit for LockClause

Source§

impl Visit for LockTable

Source§

impl Visit for MacroArg

Source§

impl Visit for Map

Source§

impl Visit for MapAccessKey

Source§

impl Visit for MapEntry

Source§

impl Visit for Measure

Source§

impl Visit for MergeClause

Source§

impl Visit for MergeInsertExpr

Source§

impl Visit for NamedWindowDefinition

Source§

impl Visit for ObjectName

Source§

impl Visit for Offset

Source§

impl Visit for OnConflict

Source§

impl Visit for OperateFunctionArg

Source§

impl Visit for OrderBy

Source§

impl Visit for OrderByExpr

Source§

impl Visit for ProcedureParam

Source§

impl Visit for ProjectionSelect

Source§

impl Visit for Query

Source§

impl Visit for ReplaceSelectElement

Source§

impl Visit for ReplaceSelectItem

Source§

impl Visit for RowAccessPolicy

Source§

impl Visit for SecretOption

Source§

impl Visit for Select

Source§

impl Visit for SelectInto

Source§

impl Visit for Setting

Source§

impl Visit for StructField

Source§

impl Visit for SymbolDefinition

Source§

impl Visit for Table

Source§

impl Visit for TableAlias

Source§

impl Visit for TableEngine

Source§

impl Visit for TableFunctionArgs

Source§

impl Visit for TableWithJoins

Source§

impl Visit for Tag

Source§

impl Visit for TagsColumnOption

Source§

impl Visit for Top

Source§

impl Visit for TriggerExecBody

Source§

impl Visit for TriggerReferencing

Source§

impl Visit for TruncateTableTarget

Source§

impl Visit for UnionField

Source§

impl Visit for UserDefinedTypeCompositeAttributeDef

Source§

impl Visit for UtilityOption

Source§

impl Visit for Values

Source§

impl Visit for ViewColumnDef

Source§

impl Visit for WildcardAdditionalOptions

Source§

impl Visit for WindowFrame

Source§

impl Visit for WindowSpec

Source§

impl Visit for With

Source§

impl Visit for WithFill

Source§

impl<T: Visit> Visit for OneOrManyWithParens<T>

Source§

impl<T: Visit> Visit for WrappedCollection<T>