|
15 | 15 | // specific language governing permissions and limitations |
16 | 16 | // under the License. |
17 | 17 |
|
18 | | -use crate::ast::ddl::CreateSnowflakeDatabase; |
19 | 18 | use crate::ast::query::SelectItemQualifiedWildcardKind; |
20 | 19 | use crate::tokenizer::Span; |
21 | 20 | use core::iter; |
22 | 21 |
|
23 | 22 | use super::{ |
24 | | - dcl::SecondaryRoles, value::ValueWithSpan, AccessExpr, AlterColumnOperation, |
25 | | - AlterIndexOperation, AlterTableOperation, Array, Assignment, AssignmentTarget, CloseCursor, |
26 | | - ClusteredIndex, ColumnDef, ColumnOption, ColumnOptionDef, ConflictTarget, ConnectBy, |
27 | | - ConstraintCharacteristics, CopySource, CreateIndex, CreateTable, CreateTableOptions, Cte, |
28 | | - Delete, DoUpdate, ExceptSelectItem, ExcludeSelectItem, Expr, ExprWithAlias, Fetch, FromTable, |
29 | | - Function, FunctionArg, FunctionArgExpr, FunctionArgumentClause, FunctionArgumentList, |
30 | | - FunctionArguments, GroupByExpr, HavingBound, IlikeSelectItem, Insert, Interpolate, |
31 | | - InterpolateExpr, Join, JoinConstraint, JoinOperator, JsonPath, JsonPathElem, LateralView, |
32 | | - MatchRecognizePattern, Measure, NamedWindowDefinition, ObjectName, ObjectNamePart, Offset, |
33 | | - OnConflict, OnConflictAction, OnInsert, OrderBy, OrderByExpr, OrderByKind, Partition, |
34 | | - PivotValueSource, ProjectionSelect, Query, ReferentialAction, RenameSelectItem, |
35 | | - ReplaceSelectElement, ReplaceSelectItem, Select, SelectInto, SelectItem, SetExpr, SqlOption, |
36 | | - Statement, Subscript, SymbolDefinition, TableAlias, TableAliasColumnDef, TableConstraint, |
37 | | - TableFactor, TableObject, TableOptionsClustered, TableWithJoins, UpdateTableFromKind, Use, |
38 | | - Value, Values, ViewColumnDef, WildcardAdditionalOptions, With, WithFill, |
| 23 | + dcl::SecondaryRoles, ddl::CreateSnowflakeDatabase, value::ValueWithSpan, AccessExpr, |
| 24 | + AlterColumnOperation, AlterIndexOperation, AlterTableOperation, Array, Assignment, |
| 25 | + AssignmentTarget, CloseCursor, ClusteredIndex, ColumnDef, ColumnOption, ColumnOptionDef, |
| 26 | + ConflictTarget, ConnectBy, ConstraintCharacteristics, CopySource, CreateIndex, CreateTable, |
| 27 | + CreateTableOptions, Cte, Delete, DoUpdate, ExceptSelectItem, ExcludeSelectItem, Expr, |
| 28 | + ExprWithAlias, Fetch, FromTable, Function, FunctionArg, FunctionArgExpr, |
| 29 | + FunctionArgumentClause, FunctionArgumentList, FunctionArguments, GroupByExpr, HavingBound, |
| 30 | + IlikeSelectItem, Insert, Interpolate, InterpolateExpr, Join, JoinConstraint, JoinOperator, |
| 31 | + JsonPath, JsonPathElem, LateralView, MatchRecognizePattern, Measure, NamedWindowDefinition, |
| 32 | + ObjectName, ObjectNamePart, Offset, OnConflict, OnConflictAction, OnInsert, OrderBy, |
| 33 | + OrderByExpr, OrderByKind, Partition, PivotValueSource, ProjectionSelect, Query, |
| 34 | + ReferentialAction, RenameSelectItem, ReplaceSelectElement, ReplaceSelectItem, Select, |
| 35 | + SelectInto, SelectItem, SetExpr, SqlOption, Statement, Subscript, SymbolDefinition, TableAlias, |
| 36 | + TableAliasColumnDef, TableConstraint, TableFactor, TableObject, TableOptionsClustered, |
| 37 | + TableWithJoins, UpdateTableFromKind, Use, Value, Values, ViewColumnDef, |
| 38 | + WildcardAdditionalOptions, With, WithFill, |
39 | 39 | }; |
40 | 40 |
|
41 | 41 | /// Given an iterator of spans, return the [Span::union] of all spans. |
|
0 commit comments