Versions in this module Expand all Collapse all v0 v0.3.0 Mar 3, 2026 v0.2.0 Dec 2, 2025 Changes in this version type TokenKind + const TokenKindConcat v0.1.1 Jul 14, 2025 v0.0.1 Jul 14, 2025 Changes in this version + const BackTicks + const DoubleQuote + const KeywordAdd + const KeywordAdmin + const KeywordAfter + const KeywordAlias + const KeywordAll + const KeywordAlter + const KeywordAnd + const KeywordAnti + const KeywordAny + const KeywordAppend + const KeywordApply + const KeywordArray + const KeywordAs + const KeywordAsc + const KeywordAscending + const KeywordAsof + const KeywordAst + const KeywordAsync + const KeywordAttach + const KeywordBetween + const KeywordBoth + const KeywordBy + const KeywordCache + const KeywordCase + const KeywordCast + const KeywordCheck + const KeywordClear + const KeywordCluster + const KeywordCodec + const KeywordCollate + const KeywordColumn + const KeywordColumns + const KeywordComment + const KeywordCompiled + const KeywordConfig + const KeywordConstraint + const KeywordCreate + const KeywordCross + const KeywordCube + const KeywordCurrent + const KeywordDNS + const KeywordDatabase + const KeywordDatabases + const KeywordDate + const KeywordDay + const KeywordDeduplicate + const KeywordDefault + const KeywordDefiner + const KeywordDelay + const KeywordDelete + const KeywordDepends + const KeywordDesc + const KeywordDescending + const KeywordDescribe + const KeywordDetach + const KeywordDetached + const KeywordDictionaries + const KeywordDictionary + const KeywordDisk + const KeywordDistinct + const KeywordDistributed + const KeywordDrop + const KeywordElse + const KeywordEmbedded + const KeywordEmpty + const KeywordEnd + const KeywordEngine + const KeywordEstimate + const KeywordEvents + const KeywordEvery + const KeywordExcept + const KeywordExists + const KeywordExplain + const KeywordExpression + const KeywordExtract + const KeywordFalse + const KeywordFetches + const KeywordFileSystem + const KeywordFinal + const KeywordFirst + const KeywordFlush + const KeywordFollowing + const KeywordFor + const KeywordFormat + const KeywordFreeze + const KeywordFrom + const KeywordFull + const KeywordFunction + const KeywordFunctions + const KeywordGlobal + const KeywordGrant + const KeywordGrantees + const KeywordGranularity + const KeywordGroup + const KeywordGrouping + const KeywordHaving + const KeywordHierarchical + const KeywordHost + const KeywordHour + const KeywordId + const KeywordIdentified + const KeywordIf + const KeywordIlike + const KeywordIn + const KeywordIndex + const KeywordInf + const KeywordInjective + const KeywordInner + const KeywordInsert + const KeywordInterval + const KeywordInto + const KeywordIp + const KeywordIs + const KeywordIs_object_id + const KeywordJSON + const KeywordJoin + const KeywordKerberos + const KeywordKey + const KeywordKill + const KeywordLast + const KeywordLayout + const KeywordLdap + const KeywordLeading + const KeywordLeft + const KeywordLifetime + const KeywordLike + const KeywordLimit + const KeywordLive + const KeywordLocal + const KeywordLogs + const KeywordMark + const KeywordMaterialize + const KeywordMaterialized + const KeywordMax + const KeywordMerges + const KeywordMin + const KeywordMinute + const KeywordModify + const KeywordMonth + const KeywordMove + const KeywordMoves + const KeywordMutation + const KeywordName + const KeywordNan_sql + const KeywordNo + const KeywordNone + const KeywordNot + const KeywordNull + const KeywordNulls + const KeywordOffset + const KeywordOn + const KeywordOptimize + const KeywordOption + const KeywordOr + const KeywordOrder + const KeywordOuter + const KeywordOutfile + const KeywordOver + const KeywordPartition + const KeywordPipeline + const KeywordPolicy + const KeywordPopulate + const KeywordPreceding + const KeywordPrewhere + const KeywordPrimary + const KeywordProjection + const KeywordQuarter + const KeywordQuery + const KeywordQueues + const KeywordQuota + const KeywordRandomize + const KeywordRange + const KeywordRealm + const KeywordRecompress + const KeywordRefresh + const KeywordRegexp + const KeywordReload + const KeywordRemove + const KeywordRename + const KeywordReplace + const KeywordReplica + const KeywordReplicated + const KeywordReplication + const KeywordRestart + const KeywordRight + const KeywordRole + const KeywordRollup + const KeywordRow + const KeywordRows + const KeywordSQL + const KeywordSample + const KeywordSecond + const KeywordSecurity + const KeywordSelect + const KeywordSemi + const KeywordSends + const KeywordServer + const KeywordSet + const KeywordSets + const KeywordSettings + const KeywordShow + const KeywordShutdown + const KeywordSkip + const KeywordSource + const KeywordStart + const KeywordStop + const KeywordSubstring + const KeywordSync + const KeywordSyntax + const KeywordSystem + const KeywordTable + const KeywordTables + const KeywordTemporary + const KeywordTest + const KeywordThen + const KeywordTies + const KeywordTimeout + const KeywordTimestamp + const KeywordTo + const KeywordTop + const KeywordTotals + const KeywordTrailing + const KeywordTrim + const KeywordTrue + const KeywordTruncate + const KeywordTtl + const KeywordType + const KeywordUnbounded + const KeywordUncompressed + const KeywordUnion + const KeywordUpdate + const KeywordUse + const KeywordUser + const KeywordUsing + const KeywordUuid + const KeywordValues + const KeywordView + const KeywordVolume + const KeywordWatch + const KeywordWeek + const KeywordWhen + const KeywordWhere + const KeywordWindow + const KeywordWith + const KeywordYear + const PrecedenceAddSub + const PrecedenceAnd + const PrecedenceArrow + const PrecedenceBetweenLike + const PrecedenceBracket + const PrecedenceCompare + const PrecedenceDot + const PrecedenceDoubleColon + const PrecedenceGlobal + const PrecedenceIndent + const PrecedenceIs + const PrecedenceMulDivMod + const PrecedenceNot + const PrecedenceOr + const PrecedenceQuery + const PrecedenceUnknown + const Unquoted + func IsDigit(c byte) bool + func IsHexDigit(c byte) bool + func IsIdentPart(c byte) bool + func IsIdentStart(c byte) bool + type ASTVisitor interface + Enter func(expr Expr) + Leave func(expr Expr) + VisitAliasExpr func(expr *AliasExpr) error + VisitAlterRole func(expr *AlterRole) error + VisitAlterTable func(expr *AlterTable) error + VisitAlterTableAddColumn func(expr *AlterTableAddColumn) error + VisitAlterTableAddIndex func(expr *AlterTableAddIndex) error + VisitAlterTableAddProjection func(expr *AlterTableAddProjection) error + VisitAlterTableAttachPartition func(expr *AlterTableAttachPartition) error + VisitAlterTableClearColumn func(expr *AlterTableClearColumn) error + VisitAlterTableClearIndex func(expr *AlterTableClearIndex) error + VisitAlterTableClearProjection func(expr *AlterTableClearProjection) error + VisitAlterTableDetachPartition func(expr *AlterTableDetachPartition) error + VisitAlterTableDropColumn func(expr *AlterTableDropColumn) error + VisitAlterTableDropIndex func(expr *AlterTableDropIndex) error + VisitAlterTableDropPartition func(expr *AlterTableDropPartition) error + VisitAlterTableDropProjection func(expr *AlterTableDropProjection) error + VisitAlterTableFreezePartition func(expr *AlterTableFreezePartition) error + VisitAlterTableMaterializeIndex func(expr *AlterTableMaterializeIndex) error + VisitAlterTableMaterializeProjection func(expr *AlterTableMaterializeProjection) error + VisitAlterTableModifyColumn func(expr *AlterTableModifyColumn) error + VisitAlterTableModifyQuery func(expr *AlterTableModifyQuery) error + VisitAlterTableModifyTTL func(expr *AlterTableModifyTTL) error + VisitAlterTableRemoveTTL func(expr *AlterTableRemoveTTL) error + VisitAlterTableRenameColumn func(expr *AlterTableRenameColumn) error + VisitAlterTableReplacePartition func(expr *AlterTableReplacePartition) error + VisitArrayJoinExpr func(expr *ArrayJoinClause) error + VisitArrayParamList func(expr *ArrayParamList) error + VisitAuthenticationClause func(expr *AuthenticationClause) error + VisitBetweenClause func(expr *BetweenClause) error + VisitBinaryExpr func(expr *BinaryOperation) error + VisitCTEExpr func(expr *CTEStmt) error + VisitCaseExpr func(expr *CaseExpr) error + VisitCastExpr func(expr *CastExpr) error + VisitCheckExpr func(expr *CheckStmt) error + VisitColumnArgList func(expr *ColumnArgList) error + VisitColumnDef func(expr *ColumnDef) error + VisitColumnExpr func(expr *ColumnExpr) error + VisitColumnExprList func(expr *ColumnExprList) error + VisitColumnIdentifier func(expr *ColumnIdentifier) error + VisitColumnNamesExpr func(expr *ColumnNamesExpr) error + VisitColumnTypeExpr func(expr *ColumnTypeExpr) error + VisitComplexType func(expr *ComplexType) error + VisitCompressionCodec func(expr *CompressionCodec) error + VisitConstraintExpr func(expr *ConstraintClause) error + VisitCreateDatabase func(expr *CreateDatabase) error + VisitCreateFunction func(expr *CreateFunction) error + VisitCreateLiveView func(expr *CreateLiveView) error + VisitCreateMaterializedView func(expr *CreateMaterializedView) error + VisitCreateRole func(expr *CreateRole) error + VisitCreateTable func(expr *CreateTable) error + VisitCreateUser func(expr *CreateUser) error + VisitCreateView func(expr *CreateView) error + VisitDeduplicateExpr func(expr *DeduplicateClause) error + VisitDefaultRoleClause func(expr *DefaultRoleClause) error + VisitDeleteFromExpr func(expr *DeleteClause) error + VisitDescribeQuery func(expr *DescribeQuery) error + VisitDestinationExpr func(expr *DestinationClause) error + VisitDropDatabase func(expr *DropDatabase) error + VisitDropStmt func(expr *DropStmt) error + VisitDropUserOrRole func(expr *DropUserOrRole) error + VisitEngineExpr func(expr *EngineExpr) error + VisitEnumType func(expr *EnumType) error + VisitEnumValue func(expr *EnumValue) error + VisitExplainExpr func(expr *ExplainStmt) error + VisitExtractExpr func(expr *ExtractExpr) error + VisitFormatExpr func(expr *FormatClause) error + VisitFromExpr func(expr *FromClause) error + VisitFunctionExpr func(expr *FunctionExpr) error + VisitGlobalInExpr func(expr *GlobalInOperation) error + VisitGrantPrivilegeExpr func(expr *GrantPrivilegeStmt) error + VisitGranteesClause func(expr *GranteesClause) error + VisitGroupByExpr func(expr *GroupByClause) error + VisitHavingExpr func(expr *HavingClause) error + VisitHostClause func(expr *HostClause) error + VisitIdent func(expr *Ident) error + VisitIndexOperation func(expr *IndexOperation) error + VisitInsertExpr func(expr *InsertStmt) error + VisitIntervalExpr func(expr *IntervalExpr) error + VisitIsNotNullExpr func(expr *IsNotNullExpr) error + VisitIsNullExpr func(expr *IsNullExpr) error + VisitJSONType func(expr *JSONType) error + VisitJoinConstraintExpr func(expr *JoinConstraintClause) error + VisitJoinExpr func(expr *JoinExpr) error + VisitJoinTableExpr func(expr *JoinTableExpr) error + VisitLimitByExpr func(expr *LimitByClause) error + VisitLimitExpr func(expr *LimitClause) error + VisitMapLiteral func(expr *MapLiteral) error + VisitNegateExpr func(expr *NegateExpr) error + VisitNestedIdentifier func(expr *NestedIdentifier) error + VisitNestedType func(expr *NestedType) error + VisitNotExpr func(expr *NotExpr) error + VisitNotNullLiteral func(expr *NotNullLiteral) error + VisitNullLiteral func(expr *NullLiteral) error + VisitNumberLiteral func(expr *NumberLiteral) error + VisitObjectParams func(expr *ObjectParams) error + VisitOnClusterExpr func(expr *ClusterClause) error + VisitOnExpr func(expr *OnClause) error + VisitOperationExpr func(expr *OperationExpr) error + VisitOptimizeExpr func(expr *OptimizeStmt) error + VisitOrderByExpr func(expr *OrderExpr) error + VisitOrderByListExpr func(expr *OrderByClause) error + VisitParamExprList func(expr *ParamExprList) error + VisitPartitionByExpr func(expr *PartitionByClause) error + VisitPartitionExpr func(expr *PartitionClause) error + VisitPlaceHolderExpr func(expr *PlaceHolder) error + VisitPrewhereExpr func(expr *PrewhereClause) error + VisitPrimaryKeyExpr func(expr *PrimaryKeyClause) error + VisitPrivilegeExpr func(expr *PrivilegeClause) error + VisitProjectionOrderBy func(expr *ProjectionOrderByClause) error + VisitProjectionSelect func(expr *ProjectionSelectStmt) error + VisitPropertyType func(expr *PropertyType) error + VisitQueryParam func(expr *QueryParam) error + VisitRatioExpr func(expr *RatioExpr) error + VisitRefreshExpr func(expr *RefreshExpr) error + VisitRemovePropertyType func(expr *RemovePropertyType) error + VisitRenameStmt func(expr *RenameStmt) error + VisitRoleName func(expr *RoleName) error + VisitRoleRenamePair func(expr *RoleRenamePair) error + VisitRoleSetting func(expr *RoleSetting) error + VisitSampleByExpr func(expr *SampleByClause) error + VisitSampleRatioExpr func(expr *SampleClause) error + VisitScalarType func(expr *ScalarType) error + VisitSelectItem func(expr *SelectItem) error + VisitSelectQuery func(expr *SelectQuery) error + VisitSetExpr func(expr *SetStmt) error + VisitSettingPair func(expr *SettingPair) error + VisitSettingsExpr func(expr *SettingExprList) error + VisitSettingsExprList func(expr *SettingsClause) error + VisitStringLiteral func(expr *StringLiteral) error + VisitSubQueryExpr func(expr *SubQuery) error + VisitSystemCtrlExpr func(expr *SystemCtrlExpr) error + VisitSystemDropExpr func(expr *SystemDropExpr) error + VisitSystemExpr func(expr *SystemStmt) error + VisitSystemFlushExpr func(expr *SystemFlushExpr) error + VisitSystemReloadExpr func(expr *SystemReloadExpr) error + VisitSystemSyncExpr func(expr *SystemSyncExpr) error + VisitTTLExpr func(expr *TTLExpr) error + VisitTTLExprList func(expr *TTLClause) error + VisitTTLPolicy func(expr *TTLPolicy) error + VisitTTLPolicyItemAction func(expr *TTLPolicyRuleAction) error + VisitTTLPolicyRule func(expr *TTLPolicyRule) error + VisitTableArgListExpr func(expr *TableArgListExpr) error + VisitTableExpr func(expr *TableExpr) error + VisitTableFunctionExpr func(expr *TableFunctionExpr) error + VisitTableIdentifier func(expr *TableIdentifier) error + VisitTableIndex func(expr *TableIndex) error + VisitTableProjection func(expr *TableProjection) error + VisitTableSchemaExpr func(expr *TableSchemaClause) error + VisitTernaryExpr func(expr *TernaryOperation) error + VisitTopExpr func(expr *TopClause) error + VisitTruncateTable func(expr *TruncateTable) error + VisitTypeWithParams func(expr *TypeWithParams) error + VisitTypedPlaceholder func(expr *TypedPlaceholder) error + VisitUUID func(expr *UUID) error + VisitUnaryExpr func(expr *UnaryExpr) error + VisitUseExpr func(expr *UseStmt) error + VisitUsingExpr func(expr *UsingClause) error + VisitValuesExpr func(expr *AssignmentValues) error + VisitWhenExpr func(expr *WhenClause) error + VisitWhereExpr func(expr *WhereClause) error + VisitWindowConditionExpr func(expr *WindowExpr) error + VisitWindowExpr func(expr *WindowClause) error + VisitWindowFrameCurrentRow func(expr *WindowFrameCurrentRow) error + VisitWindowFrameExpr func(expr *WindowFrameClause) error + VisitWindowFrameExtendExpr func(expr *WindowFrameExtendExpr) error + VisitWindowFrameNumber func(expr *WindowFrameNumber) error + VisitWindowFrameUnbounded func(expr *WindowFrameUnbounded) error + VisitWindowFunctionExpr func(expr *WindowFunctionExpr) error + VisitWithExpr func(expr *WithClause) error + VisitWithTimeoutExpr func(expr *WithTimeoutClause) error + type AliasExpr struct + Alias Expr + AliasPos Pos + Expr Expr + func (a *AliasExpr) Accept(visitor ASTVisitor) error + func (a *AliasExpr) End() Pos + func (a *AliasExpr) Pos() Pos + func (a *AliasExpr) String() string + type AlterRole struct + AlterPos Pos + IfExists bool + RoleRenamePairs []*RoleRenamePair + Settings []*RoleSetting + StatementEnd Pos + func (a *AlterRole) Accept(visitor ASTVisitor) error + func (a *AlterRole) End() Pos + func (a *AlterRole) Pos() Pos + func (a *AlterRole) String() string + func (a *AlterRole) Type() string + type AlterTable struct + AlterExprs []AlterTableClause + AlterPos Pos + OnCluster *ClusterClause + StatementEnd Pos + TableIdentifier *TableIdentifier + func (a *AlterTable) Accept(visitor ASTVisitor) error + func (a *AlterTable) End() Pos + func (a *AlterTable) Pos() Pos + func (a *AlterTable) String() string + func (a *AlterTable) Type() string + type AlterTableAddColumn struct + AddPos Pos + After *NestedIdentifier + Column *ColumnDef + IfNotExists bool + StatementEnd Pos + func (a *AlterTableAddColumn) Accept(visitor ASTVisitor) error + func (a *AlterTableAddColumn) AlterType() string + func (a *AlterTableAddColumn) End() Pos + func (a *AlterTableAddColumn) Pos() Pos + func (a *AlterTableAddColumn) String() string + type AlterTableAddIndex struct + AddPos Pos + After *NestedIdentifier + IfNotExists bool + Index *TableIndex + StatementEnd Pos + func (a *AlterTableAddIndex) Accept(visitor ASTVisitor) error + func (a *AlterTableAddIndex) AlterType() string + func (a *AlterTableAddIndex) End() Pos + func (a *AlterTableAddIndex) Pos() Pos + func (a *AlterTableAddIndex) String() string + type AlterTableAddProjection struct + AddPos Pos + After *NestedIdentifier + IfNotExists bool + StatementEnd Pos + TableProjection *TableProjection + func (a *AlterTableAddProjection) Accept(visitor ASTVisitor) error + func (a *AlterTableAddProjection) AlterType() string + func (a *AlterTableAddProjection) End() Pos + func (a *AlterTableAddProjection) Pos() Pos + func (a *AlterTableAddProjection) String() string + type AlterTableAttachPartition struct + AttachPos Pos + From *TableIdentifier + Partition *PartitionClause + func (a *AlterTableAttachPartition) Accept(visitor ASTVisitor) error + func (a *AlterTableAttachPartition) AlterType() string + func (a *AlterTableAttachPartition) End() Pos + func (a *AlterTableAttachPartition) Pos() Pos + func (a *AlterTableAttachPartition) String() string + type AlterTableClause interface + AlterType func() string + type AlterTableClearColumn struct + ClearPos Pos + ColumnName *NestedIdentifier + IfExists bool + PartitionExpr *PartitionClause + StatementEnd Pos + func (a *AlterTableClearColumn) Accept(visitor ASTVisitor) error + func (a *AlterTableClearColumn) AlterType() string + func (a *AlterTableClearColumn) End() Pos + func (a *AlterTableClearColumn) Pos() Pos + func (a *AlterTableClearColumn) String() string + type AlterTableClearIndex struct + ClearPos Pos + IfExists bool + IndexName *NestedIdentifier + PartitionExpr *PartitionClause + StatementEnd Pos + func (a *AlterTableClearIndex) Accept(visitor ASTVisitor) error + func (a *AlterTableClearIndex) AlterType() string + func (a *AlterTableClearIndex) End() Pos + func (a *AlterTableClearIndex) Pos() Pos + func (a *AlterTableClearIndex) String() string + type AlterTableClearProjection struct + ClearPos Pos + IfExists bool + PartitionExpr *PartitionClause + ProjectionName *NestedIdentifier + StatementEnd Pos + func (a *AlterTableClearProjection) Accept(visitor ASTVisitor) error + func (a *AlterTableClearProjection) AlterType() string + func (a *AlterTableClearProjection) End() Pos + func (a *AlterTableClearProjection) Pos() Pos + func (a *AlterTableClearProjection) String() string + type AlterTableDetachPartition struct + DetachPos Pos + Partition *PartitionClause + Settings *SettingsClause + func (a *AlterTableDetachPartition) Accept(visitor ASTVisitor) error + func (a *AlterTableDetachPartition) AlterType() string + func (a *AlterTableDetachPartition) End() Pos + func (a *AlterTableDetachPartition) Pos() Pos + func (a *AlterTableDetachPartition) String() string + type AlterTableDropColumn struct + ColumnName *NestedIdentifier + DropPos Pos + IfExists bool + func (a *AlterTableDropColumn) Accept(visitor ASTVisitor) error + func (a *AlterTableDropColumn) AlterType() string + func (a *AlterTableDropColumn) End() Pos + func (a *AlterTableDropColumn) Pos() Pos + func (a *AlterTableDropColumn) String() string + type AlterTableDropIndex struct + DropPos Pos + IfExists bool + IndexName *NestedIdentifier + func (a *AlterTableDropIndex) Accept(visitor ASTVisitor) error + func (a *AlterTableDropIndex) AlterType() string + func (a *AlterTableDropIndex) End() Pos + func (a *AlterTableDropIndex) Pos() Pos + func (a *AlterTableDropIndex) String() string + type AlterTableDropPartition struct + DropPos Pos + HasDetached bool + Partition *PartitionClause + Settings *SettingsClause + func (a *AlterTableDropPartition) Accept(visitor ASTVisitor) error + func (a *AlterTableDropPartition) AlterType() string + func (a *AlterTableDropPartition) End() Pos + func (a *AlterTableDropPartition) Pos() Pos + func (a *AlterTableDropPartition) String() string + type AlterTableDropProjection struct + DropPos Pos + IfExists bool + ProjectionName *NestedIdentifier + func (a *AlterTableDropProjection) Accept(visitor ASTVisitor) error + func (a *AlterTableDropProjection) AlterType() string + func (a *AlterTableDropProjection) End() Pos + func (a *AlterTableDropProjection) Pos() Pos + func (a *AlterTableDropProjection) String() string + type AlterTableFreezePartition struct + FreezePos Pos + Partition *PartitionClause + StatementEnd Pos + func (a *AlterTableFreezePartition) Accept(visitor ASTVisitor) error + func (a *AlterTableFreezePartition) AlterType() string + func (a *AlterTableFreezePartition) End() Pos + func (a *AlterTableFreezePartition) Pos() Pos + func (a *AlterTableFreezePartition) String() string + type AlterTableMaterializeIndex struct + IfExists bool + IndexName *NestedIdentifier + MaterializedPos Pos + Partition *PartitionClause + StatementEnd Pos + func (a *AlterTableMaterializeIndex) Accept(visitor ASTVisitor) error + func (a *AlterTableMaterializeIndex) AlterType() string + func (a *AlterTableMaterializeIndex) End() Pos + func (a *AlterTableMaterializeIndex) Pos() Pos + func (a *AlterTableMaterializeIndex) String() string + type AlterTableMaterializeProjection struct + IfExists bool + MaterializedPos Pos + Partition *PartitionClause + ProjectionName *NestedIdentifier + StatementEnd Pos + func (a *AlterTableMaterializeProjection) Accept(visitor ASTVisitor) error + func (a *AlterTableMaterializeProjection) AlterType() string + func (a *AlterTableMaterializeProjection) End() Pos + func (a *AlterTableMaterializeProjection) Pos() Pos + func (a *AlterTableMaterializeProjection) String() string + type AlterTableModifyColumn struct + Column *ColumnDef + IfExists bool + ModifyPos Pos + RemovePropertyType *RemovePropertyType + StatementEnd Pos + func (a *AlterTableModifyColumn) Accept(visitor ASTVisitor) error + func (a *AlterTableModifyColumn) AlterType() string + func (a *AlterTableModifyColumn) End() Pos + func (a *AlterTableModifyColumn) Pos() Pos + func (a *AlterTableModifyColumn) String() string + type AlterTableModifyQuery struct + ModifyPos Pos + SelectExpr *SelectQuery + StatementEnd Pos + func (a *AlterTableModifyQuery) Accept(visitor ASTVisitor) error + func (a *AlterTableModifyQuery) AlterType() string + func (a *AlterTableModifyQuery) End() Pos + func (a *AlterTableModifyQuery) Pos() Pos + func (a *AlterTableModifyQuery) String() string + type AlterTableModifyTTL struct + ModifyPos Pos + StatementEnd Pos + TTL *TTLExpr + func (a *AlterTableModifyTTL) Accept(visitor ASTVisitor) error + func (a *AlterTableModifyTTL) AlterType() string + func (a *AlterTableModifyTTL) End() Pos + func (a *AlterTableModifyTTL) Pos() Pos + func (a *AlterTableModifyTTL) String() string + type AlterTableRemoveTTL struct + RemovePos Pos + StatementEnd Pos + func (a *AlterTableRemoveTTL) Accept(visitor ASTVisitor) error + func (a *AlterTableRemoveTTL) AlterType() string + func (a *AlterTableRemoveTTL) End() Pos + func (a *AlterTableRemoveTTL) Pos() Pos + func (a *AlterTableRemoveTTL) String() string + type AlterTableRenameColumn struct + IfExists bool + NewColumnName *NestedIdentifier + OldColumnName *NestedIdentifier + RenamePos Pos + func (a *AlterTableRenameColumn) Accept(visitor ASTVisitor) error + func (a *AlterTableRenameColumn) AlterType() string + func (a *AlterTableRenameColumn) End() Pos + func (a *AlterTableRenameColumn) Pos() Pos + func (a *AlterTableRenameColumn) String() string + type AlterTableReplacePartition struct + Partition *PartitionClause + ReplacePos Pos + Table *TableIdentifier + func (a *AlterTableReplacePartition) Accept(visitor ASTVisitor) error + func (a *AlterTableReplacePartition) AlterType() string + func (a *AlterTableReplacePartition) End() Pos + func (a *AlterTableReplacePartition) Pos() Pos + func (a *AlterTableReplacePartition) String() string + type ArrayJoinClause struct + ArrayPos Pos + Expr Expr + Type string + func (a *ArrayJoinClause) Accept(visitor ASTVisitor) error + func (a *ArrayJoinClause) End() Pos + func (a *ArrayJoinClause) Pos() Pos + func (a *ArrayJoinClause) String() string + type ArrayParamList struct + Items *ColumnExprList + LeftBracketPos Pos + RightBracketPos Pos + func (a *ArrayParamList) Accept(visitor ASTVisitor) error + func (a *ArrayParamList) End() Pos + func (a *ArrayParamList) Pos() Pos + func (a *ArrayParamList) String() string + type AssignmentValues struct + LeftParenPos Pos + RightParenPos Pos + Values []Expr + func (v *AssignmentValues) Accept(visitor ASTVisitor) error + func (v *AssignmentValues) End() Pos + func (v *AssignmentValues) Pos() Pos + func (v *AssignmentValues) String() string + type AuthenticationClause struct + AuthEnd Pos + AuthPos Pos + AuthType string + AuthValue *StringLiteral + IsKerberos bool + KerberosRealm *StringLiteral + LdapServer *StringLiteral + NotIdentified bool + func (a *AuthenticationClause) Accept(visitor ASTVisitor) error + func (a *AuthenticationClause) End() Pos + func (a *AuthenticationClause) Pos() Pos + func (a *AuthenticationClause) String() string + type BetweenClause struct + And Expr + AndPos Pos + Between Expr + Expr Expr + func (f *BetweenClause) Accept(visitor ASTVisitor) error + func (f *BetweenClause) End() Pos + func (f *BetweenClause) Pos() Pos + func (f *BetweenClause) String() string + type BinaryOperation struct + HasGlobal bool + HasNot bool + LeftExpr Expr + Operation TokenKind + RightExpr Expr + func (p *BinaryOperation) Accept(visitor ASTVisitor) error + func (p *BinaryOperation) End() Pos + func (p *BinaryOperation) Pos() Pos + func (p *BinaryOperation) String() string + type CTEStmt struct + Alias Expr + CTEPos Pos + Expr Expr + func (c *CTEStmt) Accept(visitor ASTVisitor) error + func (c *CTEStmt) End() Pos + func (c *CTEStmt) Pos() Pos + func (c *CTEStmt) String() string + type CaseExpr struct + CasePos Pos + Else Expr + ElsePos Pos + EndPos Pos + Expr Expr + Whens []*WhenClause + func (c *CaseExpr) Accept(visitor ASTVisitor) error + func (c *CaseExpr) End() Pos + func (c *CaseExpr) Pos() Pos + func (c *CaseExpr) String() string + type CastExpr struct + AsPos Pos + AsType Expr + CastPos Pos + Expr Expr + Separator string + func (c *CastExpr) Accept(visitor ASTVisitor) error + func (c *CastExpr) End() Pos + func (c *CastExpr) Pos() Pos + func (c *CastExpr) String() string + type CheckStmt struct + CheckPos Pos + Partition *PartitionClause + Table *TableIdentifier + func (c *CheckStmt) Accept(visitor ASTVisitor) error + func (c *CheckStmt) End() Pos + func (c *CheckStmt) Pos() Pos + func (c *CheckStmt) String() string + type ClusterClause struct + Expr Expr + OnPos Pos + func (o *ClusterClause) Accept(visitor ASTVisitor) error + func (o *ClusterClause) End() Pos + func (o *ClusterClause) Pos() Pos + func (o *ClusterClause) String() string + type ColumnArgList struct + Distinct bool + Items []Expr + LeftParenPos Pos + RightParenPos Pos + func (c *ColumnArgList) Accept(visitor ASTVisitor) error + func (c *ColumnArgList) End() Pos + func (c *ColumnArgList) Pos() Pos + func (c *ColumnArgList) String() string + type ColumnDef struct + AliasExpr Expr + Codec *CompressionCodec + ColumnEnd Pos + Comment *StringLiteral + CompressionCodec *Ident + DefaultExpr Expr + MaterializedExpr Expr + Name *NestedIdentifier + NamePos Pos + NotNull *NotNullLiteral + Nullable *NullLiteral + TTL *TTLClause + Type ColumnType + func (c *ColumnDef) Accept(visitor ASTVisitor) error + func (c *ColumnDef) End() Pos + func (c *ColumnDef) Pos() Pos + func (c *ColumnDef) String() string + type ColumnExpr struct + Alias *Ident + Expr Expr + func (c *ColumnExpr) Accept(visitor ASTVisitor) error + func (c *ColumnExpr) End() Pos + func (c *ColumnExpr) Pos() Pos + func (c *ColumnExpr) String() string + type ColumnExprList struct + HasDistinct bool + Items []Expr + ListEnd Pos + ListPos Pos + func (c *ColumnExprList) Accept(visitor ASTVisitor) error + func (c *ColumnExprList) End() Pos + func (c *ColumnExprList) Pos() Pos + func (c *ColumnExprList) String() string + type ColumnIdentifier struct + Column *Ident + Database *Ident + Table *Ident + func (c *ColumnIdentifier) Accept(visitor ASTVisitor) error + func (c *ColumnIdentifier) End() Pos + func (c *ColumnIdentifier) Pos() Pos + func (c *ColumnIdentifier) String() string + type ColumnNamesExpr struct + ColumnNames []NestedIdentifier + LeftParenPos Pos + RightParenPos Pos + func (c *ColumnNamesExpr) Accept(visitor ASTVisitor) error + func (c *ColumnNamesExpr) End() Pos + func (c *ColumnNamesExpr) Pos() Pos + func (c *ColumnNamesExpr) String() string + type ColumnType interface + Type func() string + type ColumnTypeExpr struct + Name *Ident + func (c *ColumnTypeExpr) Accept(visitor ASTVisitor) error + func (c *ColumnTypeExpr) End() Pos + func (c *ColumnTypeExpr) Pos() Pos + func (c *ColumnTypeExpr) String() string + type ComplexType struct + LeftParenPos Pos + Name *Ident + Params []ColumnType + RightParenPos Pos + func (c *ComplexType) Accept(visitor ASTVisitor) error + func (c *ComplexType) End() Pos + func (c *ComplexType) Pos() Pos + func (c *ComplexType) String() string + func (c *ComplexType) Type() string + type CompressionCodec struct + CodecPos Pos + Level *NumberLiteral + Name *Ident + RightParenPos Pos + Type *Ident + TypeLevel *NumberLiteral + func (c *CompressionCodec) Accept(visitor ASTVisitor) error + func (c *CompressionCodec) End() Pos + func (c *CompressionCodec) Pos() Pos + func (c *CompressionCodec) String() string + type ConstraintClause struct + Constraint *Ident + ConstraintPos Pos + Expr Expr + func (c *ConstraintClause) Accept(visitor ASTVisitor) error + func (c *ConstraintClause) End() Pos + func (c *ConstraintClause) Pos() Pos + func (c *ConstraintClause) String() string + type CreateDatabase struct + Comment *StringLiteral + CreatePos Pos + Engine *EngineExpr + IfNotExists bool + Name Expr + OnCluster *ClusterClause + StatementEnd Pos + func (c *CreateDatabase) Accept(visitor ASTVisitor) error + func (c *CreateDatabase) End() Pos + func (c *CreateDatabase) Pos() Pos + func (c *CreateDatabase) String() string + func (c *CreateDatabase) Type() string + type CreateFunction struct + CreatePos Pos + Expr Expr + FunctionName *Ident + IfNotExists bool + OnCluster *ClusterClause + OrReplace bool + Params *ParamExprList + func (c *CreateFunction) Accept(visitor ASTVisitor) error + func (c *CreateFunction) End() Pos + func (c *CreateFunction) Pos() Pos + func (c *CreateFunction) String() string + func (c *CreateFunction) Type() string + type CreateLiveView struct + CreatePos Pos + Destination *DestinationClause + IfNotExists bool + Name *TableIdentifier + OnCluster *ClusterClause + StatementEnd Pos + SubQuery *SubQuery + TableSchema *TableSchemaClause + UUID *UUID + WithTimeout *WithTimeoutClause + func (c *CreateLiveView) Accept(visitor ASTVisitor) error + func (c *CreateLiveView) End() Pos + func (c *CreateLiveView) Pos() Pos + func (c *CreateLiveView) String() string + func (c *CreateLiveView) Type() string + type CreateMaterializedView struct + Comment *StringLiteral + CreatePos Pos + Definer *Ident + DependsOn []*TableIdentifier + Destination *DestinationClause + Engine *EngineExpr + HasAppend bool + HasEmpty bool + IfNotExists bool + Name *TableIdentifier + OnCluster *ClusterClause + Populate bool + RandomizeFor *IntervalExpr + Refresh *RefreshExpr + SQLSecurity string + Settings *SettingsClause + StatementEnd Pos + SubQuery *SubQuery + func (c *CreateMaterializedView) Accept(visitor ASTVisitor) error + func (c *CreateMaterializedView) End() Pos + func (c *CreateMaterializedView) Pos() Pos + func (c *CreateMaterializedView) String() string + func (c *CreateMaterializedView) Type() string + type CreateRole struct + AccessStorageType *Ident + CreatePos Pos + IfNotExists bool + OrReplace bool + RoleNames []*RoleName + Settings []*RoleSetting + StatementEnd Pos + func (c *CreateRole) Accept(visitor ASTVisitor) error + func (c *CreateRole) End() Pos + func (c *CreateRole) Pos() Pos + func (c *CreateRole) String() string + func (c *CreateRole) Type() string + type CreateTable struct + Comment *StringLiteral + CreatePos Pos + Engine *EngineExpr + HasTemporary bool + IfNotExists bool + Name *TableIdentifier + OnCluster *ClusterClause + OrReplace bool + StatementEnd Pos + SubQuery *SubQuery + TableSchema *TableSchemaClause + UUID *UUID + func (c *CreateTable) Accept(visitor ASTVisitor) error + func (c *CreateTable) End() Pos + func (c *CreateTable) Pos() Pos + func (c *CreateTable) String() string + func (c *CreateTable) Type() string + type CreateUser struct + Authentication *AuthenticationClause + CreatePos Pos + DefaultDatabase *Ident + DefaultDbNone bool + DefaultRole *DefaultRoleClause + Grantees *GranteesClause + Hosts []*HostClause + IfNotExists bool + OrReplace bool + Settings []*RoleSetting + StatementEnd Pos + UserNames []*RoleName + func (c *CreateUser) Accept(visitor ASTVisitor) error + func (c *CreateUser) End() Pos + func (c *CreateUser) Pos() Pos + func (c *CreateUser) String() string + func (c *CreateUser) Type() string + type CreateView struct + CreatePos Pos + IfNotExists bool + Name *TableIdentifier + OnCluster *ClusterClause + OrReplace bool + StatementEnd Pos + SubQuery *SubQuery + TableSchema *TableSchemaClause + UUID *UUID + func (c *CreateView) Accept(visitor ASTVisitor) error + func (c *CreateView) End() Pos + func (c *CreateView) Pos() Pos + func (c *CreateView) String() string + func (c *CreateView) Type() string + type DDL interface + Type func() string + type DeduplicateClause struct + By *ColumnExprList + DeduplicatePos Pos + Except *ColumnExprList + func (d *DeduplicateClause) Accept(visitor ASTVisitor) error + func (d *DeduplicateClause) End() Pos + func (d *DeduplicateClause) Pos() Pos + func (d *DeduplicateClause) String() string + type DefaultASTVisitor struct + Visit VisitFunc + func (v *DefaultASTVisitor) Enter(expr Expr) + func (v *DefaultASTVisitor) Leave(expr Expr) + func (v *DefaultASTVisitor) VisitAliasExpr(expr *AliasExpr) error + func (v *DefaultASTVisitor) VisitAlterRole(expr *AlterRole) error + func (v *DefaultASTVisitor) VisitAlterTable(expr *AlterTable) error + func (v *DefaultASTVisitor) VisitAlterTableAddColumn(expr *AlterTableAddColumn) error + func (v *DefaultASTVisitor) VisitAlterTableAddIndex(expr *AlterTableAddIndex) error + func (v *DefaultASTVisitor) VisitAlterTableAddProjection(expr *AlterTableAddProjection) error + func (v *DefaultASTVisitor) VisitAlterTableAttachPartition(expr *AlterTableAttachPartition) error + func (v *DefaultASTVisitor) VisitAlterTableClearColumn(expr *AlterTableClearColumn) error + func (v *DefaultASTVisitor) VisitAlterTableClearIndex(expr *AlterTableClearIndex) error + func (v *DefaultASTVisitor) VisitAlterTableClearProjection(expr *AlterTableClearProjection) error + func (v *DefaultASTVisitor) VisitAlterTableDetachPartition(expr *AlterTableDetachPartition) error + func (v *DefaultASTVisitor) VisitAlterTableDropColumn(expr *AlterTableDropColumn) error + func (v *DefaultASTVisitor) VisitAlterTableDropIndex(expr *AlterTableDropIndex) error + func (v *DefaultASTVisitor) VisitAlterTableDropPartition(expr *AlterTableDropPartition) error + func (v *DefaultASTVisitor) VisitAlterTableDropProjection(expr *AlterTableDropProjection) error + func (v *DefaultASTVisitor) VisitAlterTableFreezePartition(expr *AlterTableFreezePartition) error + func (v *DefaultASTVisitor) VisitAlterTableMaterializeIndex(expr *AlterTableMaterializeIndex) error + func (v *DefaultASTVisitor) VisitAlterTableMaterializeProjection(expr *AlterTableMaterializeProjection) error + func (v *DefaultASTVisitor) VisitAlterTableModifyColumn(expr *AlterTableModifyColumn) error + func (v *DefaultASTVisitor) VisitAlterTableModifyQuery(expr *AlterTableModifyQuery) error + func (v *DefaultASTVisitor) VisitAlterTableModifyTTL(expr *AlterTableModifyTTL) error + func (v *DefaultASTVisitor) VisitAlterTableRemoveTTL(expr *AlterTableRemoveTTL) error + func (v *DefaultASTVisitor) VisitAlterTableRenameColumn(expr *AlterTableRenameColumn) error + func (v *DefaultASTVisitor) VisitAlterTableReplacePartition(expr *AlterTableReplacePartition) error + func (v *DefaultASTVisitor) VisitArrayJoinExpr(expr *ArrayJoinClause) error + func (v *DefaultASTVisitor) VisitArrayParamList(expr *ArrayParamList) error + func (v *DefaultASTVisitor) VisitAuthenticationClause(expr *AuthenticationClause) error + func (v *DefaultASTVisitor) VisitBetweenClause(expr *BetweenClause) error + func (v *DefaultASTVisitor) VisitBinaryExpr(expr *BinaryOperation) error + func (v *DefaultASTVisitor) VisitCTEExpr(expr *CTEStmt) error + func (v *DefaultASTVisitor) VisitCaseExpr(expr *CaseExpr) error + func (v *DefaultASTVisitor) VisitCastExpr(expr *CastExpr) error + func (v *DefaultASTVisitor) VisitCheckExpr(expr *CheckStmt) error + func (v *DefaultASTVisitor) VisitColumnArgList(expr *ColumnArgList) error + func (v *DefaultASTVisitor) VisitColumnDef(expr *ColumnDef) error + func (v *DefaultASTVisitor) VisitColumnExpr(expr *ColumnExpr) error + func (v *DefaultASTVisitor) VisitColumnExprList(expr *ColumnExprList) error + func (v *DefaultASTVisitor) VisitColumnIdentifier(expr *ColumnIdentifier) error + func (v *DefaultASTVisitor) VisitColumnNamesExpr(expr *ColumnNamesExpr) error + func (v *DefaultASTVisitor) VisitColumnTypeExpr(expr *ColumnTypeExpr) error + func (v *DefaultASTVisitor) VisitComplexType(expr *ComplexType) error + func (v *DefaultASTVisitor) VisitCompressionCodec(expr *CompressionCodec) error + func (v *DefaultASTVisitor) VisitConstraintExpr(expr *ConstraintClause) error + func (v *DefaultASTVisitor) VisitCreateDatabase(expr *CreateDatabase) error + func (v *DefaultASTVisitor) VisitCreateFunction(expr *CreateFunction) error + func (v *DefaultASTVisitor) VisitCreateLiveView(expr *CreateLiveView) error + func (v *DefaultASTVisitor) VisitCreateMaterializedView(expr *CreateMaterializedView) error + func (v *DefaultASTVisitor) VisitCreateRole(expr *CreateRole) error + func (v *DefaultASTVisitor) VisitCreateTable(expr *CreateTable) error + func (v *DefaultASTVisitor) VisitCreateUser(expr *CreateUser) error + func (v *DefaultASTVisitor) VisitCreateView(expr *CreateView) error + func (v *DefaultASTVisitor) VisitDeduplicateExpr(expr *DeduplicateClause) error + func (v *DefaultASTVisitor) VisitDefaultRoleClause(expr *DefaultRoleClause) error + func (v *DefaultASTVisitor) VisitDeleteFromExpr(expr *DeleteClause) error + func (v *DefaultASTVisitor) VisitDescribeQuery(expr *DescribeQuery) error + func (v *DefaultASTVisitor) VisitDestinationExpr(expr *DestinationClause) error + func (v *DefaultASTVisitor) VisitDropDatabase(expr *DropDatabase) error + func (v *DefaultASTVisitor) VisitDropStmt(expr *DropStmt) error + func (v *DefaultASTVisitor) VisitDropUserOrRole(expr *DropUserOrRole) error + func (v *DefaultASTVisitor) VisitEngineExpr(expr *EngineExpr) error + func (v *DefaultASTVisitor) VisitEnumType(expr *EnumType) error + func (v *DefaultASTVisitor) VisitEnumValue(expr *EnumValue) error + func (v *DefaultASTVisitor) VisitExplainExpr(expr *ExplainStmt) error + func (v *DefaultASTVisitor) VisitExtractExpr(expr *ExtractExpr) error + func (v *DefaultASTVisitor) VisitFormatExpr(expr *FormatClause) error + func (v *DefaultASTVisitor) VisitFromExpr(expr *FromClause) error + func (v *DefaultASTVisitor) VisitFunctionExpr(expr *FunctionExpr) error + func (v *DefaultASTVisitor) VisitGlobalInExpr(expr *GlobalInOperation) error + func (v *DefaultASTVisitor) VisitGrantPrivilegeExpr(expr *GrantPrivilegeStmt) error + func (v *DefaultASTVisitor) VisitGranteesClause(expr *GranteesClause) error + func (v *DefaultASTVisitor) VisitGroupByExpr(expr *GroupByClause) error + func (v *DefaultASTVisitor) VisitHavingExpr(expr *HavingClause) error + func (v *DefaultASTVisitor) VisitHostClause(expr *HostClause) error + func (v *DefaultASTVisitor) VisitIdent(expr *Ident) error + func (v *DefaultASTVisitor) VisitIndexOperation(expr *IndexOperation) error + func (v *DefaultASTVisitor) VisitInsertExpr(expr *InsertStmt) error + func (v *DefaultASTVisitor) VisitIntervalExpr(expr *IntervalExpr) error + func (v *DefaultASTVisitor) VisitIsNotNullExpr(expr *IsNotNullExpr) error + func (v *DefaultASTVisitor) VisitIsNullExpr(expr *IsNullExpr) error + func (v *DefaultASTVisitor) VisitJSONType(expr *JSONType) error + func (v *DefaultASTVisitor) VisitJoinConstraintExpr(expr *JoinConstraintClause) error + func (v *DefaultASTVisitor) VisitJoinExpr(expr *JoinExpr) error + func (v *DefaultASTVisitor) VisitJoinTableExpr(expr *JoinTableExpr) error + func (v *DefaultASTVisitor) VisitLimitByExpr(expr *LimitByClause) error + func (v *DefaultASTVisitor) VisitLimitExpr(expr *LimitClause) error + func (v *DefaultASTVisitor) VisitMapLiteral(expr *MapLiteral) error + func (v *DefaultASTVisitor) VisitNegateExpr(expr *NegateExpr) error + func (v *DefaultASTVisitor) VisitNestedIdentifier(expr *NestedIdentifier) error + func (v *DefaultASTVisitor) VisitNestedType(expr *NestedType) error + func (v *DefaultASTVisitor) VisitNotExpr(expr *NotExpr) error + func (v *DefaultASTVisitor) VisitNotNullLiteral(expr *NotNullLiteral) error + func (v *DefaultASTVisitor) VisitNullLiteral(expr *NullLiteral) error + func (v *DefaultASTVisitor) VisitNumberLiteral(expr *NumberLiteral) error + func (v *DefaultASTVisitor) VisitObjectParams(expr *ObjectParams) error + func (v *DefaultASTVisitor) VisitOnClusterExpr(expr *ClusterClause) error + func (v *DefaultASTVisitor) VisitOnExpr(expr *OnClause) error + func (v *DefaultASTVisitor) VisitOperationExpr(expr *OperationExpr) error + func (v *DefaultASTVisitor) VisitOptimizeExpr(expr *OptimizeStmt) error + func (v *DefaultASTVisitor) VisitOrderByExpr(expr *OrderExpr) error + func (v *DefaultASTVisitor) VisitOrderByListExpr(expr *OrderByClause) error + func (v *DefaultASTVisitor) VisitParamExprList(expr *ParamExprList) error + func (v *DefaultASTVisitor) VisitPartitionByExpr(expr *PartitionByClause) error + func (v *DefaultASTVisitor) VisitPartitionExpr(expr *PartitionClause) error + func (v *DefaultASTVisitor) VisitPlaceHolderExpr(expr *PlaceHolder) error + func (v *DefaultASTVisitor) VisitPrewhereExpr(expr *PrewhereClause) error + func (v *DefaultASTVisitor) VisitPrimaryKeyExpr(expr *PrimaryKeyClause) error + func (v *DefaultASTVisitor) VisitPrivilegeExpr(expr *PrivilegeClause) error + func (v *DefaultASTVisitor) VisitProjectionOrderBy(expr *ProjectionOrderByClause) error + func (v *DefaultASTVisitor) VisitProjectionSelect(expr *ProjectionSelectStmt) error + func (v *DefaultASTVisitor) VisitPropertyType(expr *PropertyType) error + func (v *DefaultASTVisitor) VisitQueryParam(expr *QueryParam) error + func (v *DefaultASTVisitor) VisitRatioExpr(expr *RatioExpr) error + func (v *DefaultASTVisitor) VisitRefreshExpr(expr *RefreshExpr) error + func (v *DefaultASTVisitor) VisitRemovePropertyType(expr *RemovePropertyType) error + func (v *DefaultASTVisitor) VisitRenameStmt(expr *RenameStmt) error + func (v *DefaultASTVisitor) VisitRoleName(expr *RoleName) error + func (v *DefaultASTVisitor) VisitRoleRenamePair(expr *RoleRenamePair) error + func (v *DefaultASTVisitor) VisitRoleSetting(expr *RoleSetting) error + func (v *DefaultASTVisitor) VisitSampleByExpr(expr *SampleByClause) error + func (v *DefaultASTVisitor) VisitSampleRatioExpr(expr *SampleClause) error + func (v *DefaultASTVisitor) VisitScalarType(expr *ScalarType) error + func (v *DefaultASTVisitor) VisitSelectItem(expr *SelectItem) error + func (v *DefaultASTVisitor) VisitSelectQuery(expr *SelectQuery) error + func (v *DefaultASTVisitor) VisitSetExpr(expr *SetStmt) error + func (v *DefaultASTVisitor) VisitSettingPair(expr *SettingPair) error + func (v *DefaultASTVisitor) VisitSettingsExpr(expr *SettingExprList) error + func (v *DefaultASTVisitor) VisitSettingsExprList(expr *SettingsClause) error + func (v *DefaultASTVisitor) VisitStringLiteral(expr *StringLiteral) error + func (v *DefaultASTVisitor) VisitSubQueryExpr(expr *SubQuery) error + func (v *DefaultASTVisitor) VisitSystemCtrlExpr(expr *SystemCtrlExpr) error + func (v *DefaultASTVisitor) VisitSystemDropExpr(expr *SystemDropExpr) error + func (v *DefaultASTVisitor) VisitSystemExpr(expr *SystemStmt) error + func (v *DefaultASTVisitor) VisitSystemFlushExpr(expr *SystemFlushExpr) error + func (v *DefaultASTVisitor) VisitSystemReloadExpr(expr *SystemReloadExpr) error + func (v *DefaultASTVisitor) VisitSystemSyncExpr(expr *SystemSyncExpr) error + func (v *DefaultASTVisitor) VisitTTLExpr(expr *TTLExpr) error + func (v *DefaultASTVisitor) VisitTTLExprList(expr *TTLClause) error + func (v *DefaultASTVisitor) VisitTTLPolicy(expr *TTLPolicy) error + func (v *DefaultASTVisitor) VisitTTLPolicyItemAction(expr *TTLPolicyRuleAction) error + func (v *DefaultASTVisitor) VisitTTLPolicyRule(expr *TTLPolicyRule) error + func (v *DefaultASTVisitor) VisitTableArgListExpr(expr *TableArgListExpr) error + func (v *DefaultASTVisitor) VisitTableExpr(expr *TableExpr) error + func (v *DefaultASTVisitor) VisitTableFunctionExpr(expr *TableFunctionExpr) error + func (v *DefaultASTVisitor) VisitTableIdentifier(expr *TableIdentifier) error + func (v *DefaultASTVisitor) VisitTableIndex(expr *TableIndex) error + func (v *DefaultASTVisitor) VisitTableProjection(expr *TableProjection) error + func (v *DefaultASTVisitor) VisitTableSchemaExpr(expr *TableSchemaClause) error + func (v *DefaultASTVisitor) VisitTernaryExpr(expr *TernaryOperation) error + func (v *DefaultASTVisitor) VisitTopExpr(expr *TopClause) error + func (v *DefaultASTVisitor) VisitTruncateTable(expr *TruncateTable) error + func (v *DefaultASTVisitor) VisitTypeWithParams(expr *TypeWithParams) error + func (v *DefaultASTVisitor) VisitTypedPlaceholder(expr *TypedPlaceholder) error + func (v *DefaultASTVisitor) VisitUUID(expr *UUID) error + func (v *DefaultASTVisitor) VisitUnaryExpr(expr *UnaryExpr) error + func (v *DefaultASTVisitor) VisitUseExpr(expr *UseStmt) error + func (v *DefaultASTVisitor) VisitUsingExpr(expr *UsingClause) error + func (v *DefaultASTVisitor) VisitValuesExpr(expr *AssignmentValues) error + func (v *DefaultASTVisitor) VisitWhenExpr(expr *WhenClause) error + func (v *DefaultASTVisitor) VisitWhereExpr(expr *WhereClause) error + func (v *DefaultASTVisitor) VisitWindowConditionExpr(expr *WindowExpr) error + func (v *DefaultASTVisitor) VisitWindowExpr(expr *WindowClause) error + func (v *DefaultASTVisitor) VisitWindowFrameCurrentRow(expr *WindowFrameCurrentRow) error + func (v *DefaultASTVisitor) VisitWindowFrameExpr(expr *WindowFrameClause) error + func (v *DefaultASTVisitor) VisitWindowFrameExtendExpr(expr *WindowFrameExtendExpr) error + func (v *DefaultASTVisitor) VisitWindowFrameNumber(expr *WindowFrameNumber) error + func (v *DefaultASTVisitor) VisitWindowFrameUnbounded(expr *WindowFrameUnbounded) error + func (v *DefaultASTVisitor) VisitWindowFunctionExpr(expr *WindowFunctionExpr) error + func (v *DefaultASTVisitor) VisitWithExpr(expr *WithClause) error + func (v *DefaultASTVisitor) VisitWithTimeoutExpr(expr *WithTimeoutClause) error + type DefaultRoleClause struct + DefaultEnd Pos + DefaultPos Pos + None bool + Roles []*RoleName + func (d *DefaultRoleClause) Accept(visitor ASTVisitor) error + func (d *DefaultRoleClause) End() Pos + func (d *DefaultRoleClause) Pos() Pos + func (d *DefaultRoleClause) String() string + type DeleteClause struct + DeletePos Pos + OnCluster *ClusterClause + Table *TableIdentifier + WhereExpr Expr + func (d *DeleteClause) Accept(visitor ASTVisitor) error + func (d *DeleteClause) End() Pos + func (d *DeleteClause) Pos() Pos + func (d *DeleteClause) String() string + type DescribeQuery struct + DescribePos Pos + Expr Expr + Settings *SettingsClause + func (f *DescribeQuery) Accept(visitor ASTVisitor) error + func (f *DescribeQuery) End() Pos + func (f *DescribeQuery) Pos() Pos + func (f *DescribeQuery) String() string + type DestinationClause struct + TableIdentifier *TableIdentifier + TableSchema *TableSchemaClause + ToPos Pos + func (d *DestinationClause) Accept(visitor ASTVisitor) error + func (d *DestinationClause) End() Pos + func (d *DestinationClause) Pos() Pos + func (d *DestinationClause) String() string + type DropDatabase struct + DropPos Pos + IfExists bool + Name *Ident + OnCluster *ClusterClause + StatementEnd Pos + func (d *DropDatabase) Accept(visitor ASTVisitor) error + func (d *DropDatabase) End() Pos + func (d *DropDatabase) Pos() Pos + func (d *DropDatabase) String() string + func (d *DropDatabase) Type() string + type DropStmt struct + DropPos Pos + DropTarget string + IfExists bool + IsTemporary bool + Modifier string + Name *TableIdentifier + OnCluster *ClusterClause + StatementEnd Pos + func (d *DropStmt) Accept(visitor ASTVisitor) error + func (d *DropStmt) End() Pos + func (d *DropStmt) Pos() Pos + func (d *DropStmt) String() string + func (d *DropStmt) Type() string + type DropUserOrRole struct + DropPos Pos + From *Ident + IfExists bool + Modifier string + Names []*RoleName + StatementEnd Pos + Target string + func (d *DropUserOrRole) Accept(visitor ASTVisitor) error + func (d *DropUserOrRole) End() Pos + func (d *DropUserOrRole) Pos() Pos + func (d *DropUserOrRole) String() string + func (d *DropUserOrRole) Type() string + type EngineExpr struct + EngineEnd Pos + EnginePos Pos + Name string + OrderBy *OrderByClause + Params *ParamExprList + PartitionBy *PartitionByClause + PrimaryKey *PrimaryKeyClause + SampleBy *SampleByClause + Settings *SettingsClause + TTL *TTLClause + func (e *EngineExpr) Accept(visitor ASTVisitor) error + func (e *EngineExpr) End() Pos + func (e *EngineExpr) Pos() Pos + func (e *EngineExpr) String() string + type EnumType struct + ListEnd Pos + ListPos Pos + Name *Ident + Values []EnumValue + func (e *EnumType) Accept(visitor ASTVisitor) error + func (e *EnumType) End() Pos + func (e *EnumType) Pos() Pos + func (e *EnumType) String() string + func (e *EnumType) Type() string + type EnumValue struct + Name *StringLiteral + Value *NumberLiteral + func (e *EnumValue) Accept(visitor ASTVisitor) error + func (e *EnumValue) End() Pos + func (e *EnumValue) Pos() Pos + func (e *EnumValue) String() string + type ExplainStmt struct + ExplainPos Pos + Statement Expr + Type string + func (e *ExplainStmt) Accept(visitor ASTVisitor) error + func (e *ExplainStmt) End() Pos + func (e *ExplainStmt) Pos() Pos + func (e *ExplainStmt) String() string + type Expr interface + Accept func(visitor ASTVisitor) error + End func() Pos + Pos func() Pos + String func() string + type ExtractExpr struct + ExtractPos Pos + FromExpr Expr + FromPos Pos + Interval *Ident + func (e *ExtractExpr) Accept(visitor ASTVisitor) error + func (e *ExtractExpr) End() Pos + func (e *ExtractExpr) Pos() Pos + func (e *ExtractExpr) String() string + type FormatClause struct + Format *Ident + FormatPos Pos + func (f *FormatClause) Accept(visitor ASTVisitor) error + func (f *FormatClause) End() Pos + func (f *FormatClause) Pos() Pos + func (f *FormatClause) String() string + type FromClause struct + Expr Expr + FromPos Pos + func (f *FromClause) Accept(visitor ASTVisitor) error + func (f *FromClause) End() Pos + func (f *FromClause) Pos() Pos + func (f *FromClause) String() string + type FunctionExpr struct + Name *Ident + Params *ParamExprList + func (f *FunctionExpr) Accept(visitor ASTVisitor) error + func (f *FunctionExpr) End() Pos + func (f *FunctionExpr) Pos() Pos + func (f *FunctionExpr) String() string + type GlobalInOperation struct + Expr Expr + GlobalPos Pos + func (g *GlobalInOperation) Accept(visitor ASTVisitor) error + func (g *GlobalInOperation) End() Pos + func (g *GlobalInOperation) Pos() Pos + func (g *GlobalInOperation) String() string + type GrantPrivilegeStmt struct + GrantPos Pos + On *TableIdentifier + OnCluster *ClusterClause + Privileges []*PrivilegeClause + StatementEnd Pos + To []*Ident + WithOptions []string + func (g *GrantPrivilegeStmt) Accept(visitor ASTVisitor) error + func (g *GrantPrivilegeStmt) End() Pos + func (g *GrantPrivilegeStmt) Pos() Pos + func (g *GrantPrivilegeStmt) String() string + func (g *GrantPrivilegeStmt) Type() string + type GranteesClause struct + Any bool + ExceptUsers []*RoleName + Grantees []*RoleName + GranteesEnd Pos + GranteesPos Pos + None bool + func (g *GranteesClause) Accept(visitor ASTVisitor) error + func (g *GranteesClause) End() Pos + func (g *GranteesClause) Pos() Pos + func (g *GranteesClause) String() string + type GroupByClause struct + AggregateType string + Expr Expr + GroupByEnd Pos + GroupByPos Pos + WithCube bool + WithRollup bool + WithTotals bool + func (g *GroupByClause) Accept(visitor ASTVisitor) error + func (g *GroupByClause) End() Pos + func (g *GroupByClause) Pos() Pos + func (g *GroupByClause) String() string + type HavingClause struct + Expr Expr + HavingPos Pos + func (h *HavingClause) Accept(visitor ASTVisitor) error + func (h *HavingClause) End() Pos + func (h *HavingClause) Pos() Pos + func (h *HavingClause) String() string + type HostClause struct + HostEnd Pos + HostPos Pos + HostType string + HostValue *StringLiteral + func (h *HostClause) Accept(visitor ASTVisitor) error + func (h *HostClause) End() Pos + func (h *HostClause) Pos() Pos + func (h *HostClause) String() string + type Ident struct + Name string + NameEnd Pos + NamePos Pos + QuoteType int + func (i *Ident) Accept(visitor ASTVisitor) error + func (i *Ident) End() Pos + func (i *Ident) Pos() Pos + func (i *Ident) String() string + type IndexOperation struct + Index Expr + Object Expr + Operation TokenKind + func (i *IndexOperation) Accept(visitor ASTVisitor) error + func (i *IndexOperation) End() Pos + func (i *IndexOperation) Pos() Pos + func (i *IndexOperation) String() string + type InsertStmt struct + ColumnNames *ColumnNamesExpr + Format *FormatClause + HasTableKeyword bool + InsertPos Pos + SelectExpr *SelectQuery + Table Expr + Values []*AssignmentValues + func (i *InsertStmt) Accept(visitor ASTVisitor) error + func (i *InsertStmt) End() Pos + func (i *InsertStmt) Pos() Pos + func (i *InsertStmt) String() string + type IntervalExpr struct + Expr Expr + IntervalPos Pos + Unit *Ident + func (i *IntervalExpr) Accept(visitor ASTVisitor) error + func (i *IntervalExpr) End() Pos + func (i *IntervalExpr) Pos() Pos + func (i *IntervalExpr) String() string + type IsNotNullExpr struct + Expr Expr + IsPos Pos + func (n *IsNotNullExpr) Accept(visitor ASTVisitor) error + func (n *IsNotNullExpr) End() Pos + func (n *IsNotNullExpr) Pos() Pos + func (n *IsNotNullExpr) String() string + type IsNullExpr struct + Expr Expr + IsPos Pos + func (n *IsNullExpr) Accept(visitor ASTVisitor) error + func (n *IsNullExpr) End() Pos + func (n *IsNullExpr) Pos() Pos + func (n *IsNullExpr) String() string + type JSONOption struct + MaxDynamicPaths *NumberLiteral + MaxDynamicTypes *NumberLiteral + SkipPath *JSONPath + SkipRegex *StringLiteral + func (j *JSONOption) String() string + type JSONOptions struct + Items []*JSONOption + LParen Pos + RParen Pos + func (j *JSONOptions) End() Pos + func (j *JSONOptions) Pos() Pos + func (j *JSONOptions) String() string + type JSONPath struct + Idents []*Ident + func (j *JSONPath) String() string + type JSONType struct + Name *Ident + Options *JSONOptions + func (j *JSONType) Accept(visitor ASTVisitor) error + func (j *JSONType) End() Pos + func (j *JSONType) Pos() Pos + func (j *JSONType) String() string + func (j *JSONType) Type() string + type JoinConstraintClause struct + ConstraintPos Pos + On *ColumnExprList + Using *ColumnExprList + func (j *JoinConstraintClause) Accept(visitor ASTVisitor) error + func (j *JoinConstraintClause) End() Pos + func (j *JoinConstraintClause) Pos() Pos + func (j *JoinConstraintClause) String() string + type JoinExpr struct + Constraints Expr + JoinPos Pos + Left Expr + Modifiers []string + Right Expr + func (j *JoinExpr) Accept(visitor ASTVisitor) error + func (j *JoinExpr) End() Pos + func (j *JoinExpr) Pos() Pos + func (j *JoinExpr) String() string + type JoinTableExpr struct + HasFinal bool + SampleRatio *SampleClause + StatementEnd Pos + Table *TableExpr + func (j *JoinTableExpr) Accept(visitor ASTVisitor) error + func (j *JoinTableExpr) End() Pos + func (j *JoinTableExpr) Pos() Pos + func (j *JoinTableExpr) String() string + type KeyValue struct + Key StringLiteral + Value Expr + type Lexer struct + func NewLexer(buf string) *Lexer + type LimitByClause struct + ByExpr *ColumnExprList + Limit *LimitClause + func (l *LimitByClause) Accept(visitor ASTVisitor) error + func (l *LimitByClause) End() Pos + func (l *LimitByClause) Pos() Pos + func (l *LimitByClause) String() string + type LimitClause struct + Limit Expr + LimitPos Pos + Offset Expr + func (l *LimitClause) Accept(visitor ASTVisitor) error + func (l *LimitClause) End() Pos + func (l *LimitClause) Pos() Pos + func (l *LimitClause) String() string + type Literal interface + type MapLiteral struct + KeyValues []KeyValue + LBracePos Pos + RBracePos Pos + func (m *MapLiteral) Accept(visitor ASTVisitor) error + func (m *MapLiteral) End() Pos + func (m *MapLiteral) Pos() Pos + func (m *MapLiteral) String() string + type NegateExpr struct + Expr Expr + NegatePos Pos + func (n *NegateExpr) Accept(visitor ASTVisitor) error + func (n *NegateExpr) End() Pos + func (n *NegateExpr) Pos() Pos + func (n *NegateExpr) String() string + type NestedIdentifier struct + DotIdent *Ident + Ident *Ident + func (n *NestedIdentifier) Accept(visitor ASTVisitor) error + func (n *NestedIdentifier) End() Pos + func (n *NestedIdentifier) Pos() Pos + func (n *NestedIdentifier) String() string + type NestedType struct + Columns []Expr + LeftParenPos Pos + Name *Ident + RightParenPos Pos + func (n *NestedType) Accept(visitor ASTVisitor) error + func (n *NestedType) End() Pos + func (n *NestedType) Pos() Pos + func (n *NestedType) String() string + func (n *NestedType) Type() string + type NotExpr struct + Expr Expr + NotPos Pos + func (n *NotExpr) Accept(visitor ASTVisitor) error + func (n *NotExpr) End() Pos + func (n *NotExpr) Pos() Pos + func (n *NotExpr) String() string + type NotNullLiteral struct + NotPos Pos + NullLiteral *NullLiteral + func (n *NotNullLiteral) Accept(visitor ASTVisitor) error + func (n *NotNullLiteral) End() Pos + func (n *NotNullLiteral) Pos() Pos + func (n *NotNullLiteral) String() string + type NullLiteral struct + NullPos Pos + func (n *NullLiteral) Accept(visitor ASTVisitor) error + func (n *NullLiteral) End() Pos + func (n *NullLiteral) Pos() Pos + func (n *NullLiteral) String() string + type NumberLiteral struct + Base int + Literal string + NumEnd Pos + NumPos Pos + func (n *NumberLiteral) Accept(visitor ASTVisitor) error + func (n *NumberLiteral) End() Pos + func (n *NumberLiteral) Pos() Pos + func (n *NumberLiteral) String() string + type ObjectParams struct + Object Expr + Params *ArrayParamList + func (o *ObjectParams) Accept(visitor ASTVisitor) error + func (o *ObjectParams) End() Pos + func (o *ObjectParams) Pos() Pos + func (o *ObjectParams) String() string + type OnClause struct + On *ColumnExprList + OnPos Pos + func (o *OnClause) Accept(visitor ASTVisitor) error + func (o *OnClause) End() Pos + func (o *OnClause) Pos() Pos + func (o *OnClause) String() string + type OperationExpr struct + Kind TokenKind + OperationPos Pos + func (o *OperationExpr) Accept(visitor ASTVisitor) error + func (o *OperationExpr) End() Pos + func (o *OperationExpr) Pos() Pos + func (o *OperationExpr) String() string + type OptimizeStmt struct + Deduplicate *DeduplicateClause + HasFinal bool + OnCluster *ClusterClause + OptimizePos Pos + Partition *PartitionClause + StatementEnd Pos + Table *TableIdentifier + func (o *OptimizeStmt) Accept(visitor ASTVisitor) error + func (o *OptimizeStmt) End() Pos + func (o *OptimizeStmt) Pos() Pos + func (o *OptimizeStmt) String() string + type OrderByClause struct + Items []Expr + ListEnd Pos + OrderPos Pos + func (o *OrderByClause) Accept(visitor ASTVisitor) error + func (o *OrderByClause) End() Pos + func (o *OrderByClause) Pos() Pos + func (o *OrderByClause) String() string + type OrderDirection string + const OrderDirectionAsc + const OrderDirectionDesc + const OrderDirectionNone + type OrderExpr struct + Alias *Ident + Direction OrderDirection + Expr Expr + OrderPos Pos + func (o *OrderExpr) Accept(visitor ASTVisitor) error + func (o *OrderExpr) End() Pos + func (o *OrderExpr) Pos() Pos + func (o *OrderExpr) String() string + type ParamExprList struct + ColumnArgList *ColumnArgList + Items *ColumnExprList + LeftParenPos Pos + RightParenPos Pos + func (f *ParamExprList) Accept(visitor ASTVisitor) error + func (f *ParamExprList) End() Pos + func (f *ParamExprList) Pos() Pos + func (f *ParamExprList) String() string + type Parser struct + func NewParser(buffer string) *Parser + func (p *Parser) End() Pos + func (p *Parser) ParseNestedIdentifier(_ Pos) (*NestedIdentifier, error) + func (p *Parser) ParseStmts() ([]Expr, error) + func (p *Parser) Pos() Pos + type PartitionByClause struct + Expr Expr + PartitionPos Pos + func (p *PartitionByClause) Accept(visitor ASTVisitor) error + func (p *PartitionByClause) End() Pos + func (p *PartitionByClause) Pos() Pos + func (p *PartitionByClause) String() string + type PartitionClause struct + All bool + Expr Expr + ID *StringLiteral + PartitionPos Pos + func (p *PartitionClause) Accept(visitor ASTVisitor) error + func (p *PartitionClause) End() Pos + func (p *PartitionClause) Pos() Pos + func (p *PartitionClause) String() string + type PlaceHolder struct + PlaceHolderEnd Pos + PlaceholderPos Pos + Type string + func (p *PlaceHolder) Accept(visitor ASTVisitor) error + func (p *PlaceHolder) End() Pos + func (p *PlaceHolder) Pos() Pos + func (p *PlaceHolder) String() string + type Pos int + type PrewhereClause struct + Expr Expr + PrewherePos Pos + func (w *PrewhereClause) Accept(visitor ASTVisitor) error + func (w *PrewhereClause) End() Pos + func (w *PrewhereClause) Pos() Pos + func (w *PrewhereClause) String() string + type PrimaryKeyClause struct + Expr Expr + PrimaryPos Pos + func (p *PrimaryKeyClause) Accept(visitor ASTVisitor) error + func (p *PrimaryKeyClause) End() Pos + func (p *PrimaryKeyClause) Pos() Pos + func (p *PrimaryKeyClause) String() string + type PrivilegeClause struct + Keywords []string + Params *ParamExprList + PrivilegeEnd Pos + PrivilegePos Pos + func (p *PrivilegeClause) Accept(visitor ASTVisitor) error + func (p *PrivilegeClause) End() Pos + func (p *PrivilegeClause) Pos() Pos + func (p *PrivilegeClause) String() string + type ProjectionOrderByClause struct + Columns *ColumnExprList + OrderByPos Pos + func (p *ProjectionOrderByClause) Accept(visitor ASTVisitor) error + func (p *ProjectionOrderByClause) End() Pos + func (p *ProjectionOrderByClause) Pos() Pos + func (p *ProjectionOrderByClause) String() string + type ProjectionSelectStmt struct + GroupBy *GroupByClause + LeftParenPos Pos + OrderBy *ProjectionOrderByClause + RightParenPos Pos + SelectColumns *ColumnExprList + With *WithClause + func (p *ProjectionSelectStmt) Accept(visitor ASTVisitor) error + func (p *ProjectionSelectStmt) End() Pos + func (p *ProjectionSelectStmt) Pos() Pos + func (p *ProjectionSelectStmt) String() string + type PropertyType struct + Name *Ident + func (c *PropertyType) Accept(visitor ASTVisitor) error + func (c *PropertyType) End() Pos + func (c *PropertyType) Pos() Pos + func (c *PropertyType) String() string + func (c *PropertyType) Type() string + type QueryParam struct + LBracePos Pos + Name *Ident + RBracePos Pos + Type ColumnType + func (q *QueryParam) Accept(visitor ASTVisitor) error + func (q *QueryParam) End() Pos + func (q *QueryParam) Pos() Pos + func (q *QueryParam) String() string + type RatioExpr struct + Denominator *NumberLiteral + Numerator *NumberLiteral + func (r *RatioExpr) Accept(visitor ASTVisitor) error + func (r *RatioExpr) End() Pos + func (r *RatioExpr) Pos() Pos + func (r *RatioExpr) String() string + type RefreshExpr struct + Frequency string + Interval *IntervalExpr + Offset *IntervalExpr + RefreshPos Pos + func (r *RefreshExpr) Accept(visitor ASTVisitor) error + func (r *RefreshExpr) End() Pos + func (r *RefreshExpr) Pos() Pos + func (r *RefreshExpr) String() string + type RemovePropertyType struct + PropertyType Expr + RemovePos Pos + func (a *RemovePropertyType) Accept(visitor ASTVisitor) error + func (a *RemovePropertyType) End() Pos + func (a *RemovePropertyType) Pos() Pos + func (a *RemovePropertyType) String() string + type RenameStmt struct + OnCluster *ClusterClause + RenamePos Pos + RenameTarget string + StatementEnd Pos + TargetPairList []*TargetPair + func (r *RenameStmt) Accept(visitor ASTVisitor) error + func (r *RenameStmt) End() Pos + func (r *RenameStmt) Pos() Pos + func (r *RenameStmt) String() string + func (r *RenameStmt) Type() string + type RoleName struct + Name Expr + OnCluster *ClusterClause + Scope *StringLiteral + func (r *RoleName) Accept(visitor ASTVisitor) error + func (r *RoleName) End() Pos + func (r *RoleName) Pos() Pos + func (r *RoleName) String() string + type RoleRenamePair struct + NewName Expr + RoleName *RoleName + StatementEnd Pos + func (r *RoleRenamePair) Accept(visitor ASTVisitor) error + func (r *RoleRenamePair) End() Pos + func (r *RoleRenamePair) Pos() Pos + func (r *RoleRenamePair) String() string + type RoleSetting struct + Modifier *Ident + SettingPairs []*SettingPair + func (r *RoleSetting) Accept(visitor ASTVisitor) error + func (r *RoleSetting) End() Pos + func (r *RoleSetting) Pos() Pos + func (r *RoleSetting) String() string + type SampleByClause struct + Expr Expr + SamplePos Pos + func (s *SampleByClause) Accept(visitor ASTVisitor) error + func (s *SampleByClause) End() Pos + func (s *SampleByClause) Pos() Pos + func (s *SampleByClause) String() string + type SampleClause struct + Offset *RatioExpr + Ratio *RatioExpr + SamplePos Pos + func (s *SampleClause) Accept(visitor ASTVisitor) error + func (s *SampleClause) End() Pos + func (s *SampleClause) Pos() Pos + func (s *SampleClause) String() string + type ScalarType struct + Name *Ident + func (s *ScalarType) Accept(visitor ASTVisitor) error + func (s *ScalarType) End() Pos + func (s *ScalarType) Pos() Pos + func (s *ScalarType) String() string + func (s *ScalarType) Type() string + type SelectItem struct + Alias *Ident + Expr Expr + Modifiers []*FunctionExpr + func (s *SelectItem) Accept(visitor ASTVisitor) error + func (s *SelectItem) End() Pos + func (s *SelectItem) Pos() Pos + func (s *SelectItem) String() string + type SelectQuery struct + ArrayJoin *ArrayJoinClause + Except *SelectQuery + Format *FormatClause + From *FromClause + GroupBy *GroupByClause + HasDistinct bool + Having *HavingClause + Limit *LimitClause + LimitBy *LimitByClause + OrderBy *OrderByClause + Prewhere *PrewhereClause + SelectItems []*SelectItem + SelectPos Pos + Settings *SettingsClause + StatementEnd Pos + Top *TopClause + UnionAll *SelectQuery + UnionDistinct *SelectQuery + Where *WhereClause + Window *WindowClause + With *WithClause + WithTotal bool + func (s *SelectQuery) Accept(visitor ASTVisitor) error + func (s *SelectQuery) End() Pos + func (s *SelectQuery) Pos() Pos + func (s *SelectQuery) String() string + type Set struct + func NewSet[T comparable](members ...T) *Set[T] + func (s *Set[T]) Add(member T) + func (s *Set[T]) Contains(member T) bool + func (s *Set[T]) Members() []T + func (s *Set[T]) Remove(member T) + type SetStmt struct + SetPos Pos + Settings *SettingsClause + func (s *SetStmt) Accept(visitor ASTVisitor) error + func (s *SetStmt) End() Pos + func (s *SetStmt) Pos() Pos + func (s *SetStmt) String() string + type SettingExprList struct + Expr Expr + Name *Ident + SettingsPos Pos + func (s *SettingExprList) Accept(visitor ASTVisitor) error + func (s *SettingExprList) End() Pos + func (s *SettingExprList) Pos() Pos + func (s *SettingExprList) String() string + type SettingPair struct + Name *Ident + Operation TokenKind + Value Expr + func (s *SettingPair) Accept(visitor ASTVisitor) error + func (s *SettingPair) End() Pos + func (s *SettingPair) Pos() Pos + func (s *SettingPair) String() string + type SettingsClause struct + Items []*SettingExprList + ListEnd Pos + SettingsPos Pos + func (s *SettingsClause) Accept(visitor ASTVisitor) error + func (s *SettingsClause) End() Pos + func (s *SettingsClause) Pos() Pos + func (s *SettingsClause) String() string + type StringLiteral struct + Literal string + LiteralEnd Pos + LiteralPos Pos + func (s *StringLiteral) Accept(visitor ASTVisitor) error + func (s *StringLiteral) End() Pos + func (s *StringLiteral) Pos() Pos + func (s *StringLiteral) String() string + type SubQuery struct + HasParen bool + Select *SelectQuery + func (s *SubQuery) Accept(visitor ASTVisitor) error + func (s *SubQuery) End() Pos + func (s *SubQuery) Pos() Pos + func (s *SubQuery) String() string + type SystemCtrlExpr struct + Cluster *TableIdentifier + Command string + CtrlPos Pos + StatementEnd Pos + Type string + func (s *SystemCtrlExpr) Accept(visitor ASTVisitor) error + func (s *SystemCtrlExpr) End() Pos + func (s *SystemCtrlExpr) Pos() Pos + func (s *SystemCtrlExpr) String() string + type SystemDropExpr struct + DropPos Pos + StatementEnd Pos + Type string + func (s *SystemDropExpr) Accept(visitor ASTVisitor) error + func (s *SystemDropExpr) End() Pos + func (s *SystemDropExpr) Pos() Pos + func (s *SystemDropExpr) String() string + type SystemFlushExpr struct + Distributed *TableIdentifier + FlushPos Pos + Logs bool + StatementEnd Pos + func (s *SystemFlushExpr) Accept(visitor ASTVisitor) error + func (s *SystemFlushExpr) End() Pos + func (s *SystemFlushExpr) Pos() Pos + func (s *SystemFlushExpr) String() string + type SystemReloadExpr struct + Dictionary *TableIdentifier + ReloadPos Pos + StatementEnd Pos + Type string + func (s *SystemReloadExpr) Accept(visitor ASTVisitor) error + func (s *SystemReloadExpr) End() Pos + func (s *SystemReloadExpr) Pos() Pos + func (s *SystemReloadExpr) String() string + type SystemStmt struct + Expr Expr + SystemPos Pos + func (s *SystemStmt) Accept(visitor ASTVisitor) error + func (s *SystemStmt) End() Pos + func (s *SystemStmt) Pos() Pos + func (s *SystemStmt) String() string + type SystemSyncExpr struct + Cluster *TableIdentifier + SyncPos Pos + func (s *SystemSyncExpr) Accept(visitor ASTVisitor) error + func (s *SystemSyncExpr) End() Pos + func (s *SystemSyncExpr) Pos() Pos + func (s *SystemSyncExpr) String() string + type TTLClause struct + Items []*TTLExpr + ListEnd Pos + TTLPos Pos + func (t *TTLClause) Accept(visitor ASTVisitor) error + func (t *TTLClause) End() Pos + func (t *TTLClause) Pos() Pos + func (t *TTLClause) String() string + type TTLExpr struct + Expr Expr + Policy *TTLPolicy + TTLPos Pos + func (t *TTLExpr) Accept(visitor ASTVisitor) error + func (t *TTLExpr) End() Pos + func (t *TTLExpr) Pos() Pos + func (t *TTLExpr) String() string + type TTLPolicy struct + GroupBy *GroupByClause + Item *TTLPolicyRule + Where *WhereClause + func (t *TTLPolicy) Accept(visitor ASTVisitor) error + func (t *TTLPolicy) End() Pos + func (t *TTLPolicy) Pos() Pos + func (t *TTLPolicy) String() string + type TTLPolicyRule struct + Action *TTLPolicyRuleAction + RulePos Pos + ToDisk *StringLiteral + ToVolume *StringLiteral + func (t *TTLPolicyRule) Accept(visitor ASTVisitor) error + func (t *TTLPolicyRule) End() Pos + func (t *TTLPolicyRule) Pos() Pos + func (t *TTLPolicyRule) String() string + type TTLPolicyRuleAction struct + Action string + ActionEnd Pos + ActionPos Pos + Codec *CompressionCodec + func (t *TTLPolicyRuleAction) Accept(visitor ASTVisitor) error + func (t *TTLPolicyRuleAction) End() Pos + func (t *TTLPolicyRuleAction) Pos() Pos + func (t *TTLPolicyRuleAction) String() string + type TableArgListExpr struct + Args []Expr + LeftParenPos Pos + RightParenPos Pos + func (t *TableArgListExpr) Accept(visitor ASTVisitor) error + func (t *TableArgListExpr) End() Pos + func (t *TableArgListExpr) Pos() Pos + func (t *TableArgListExpr) String() string + type TableExpr struct + Alias *AliasExpr + Expr Expr + HasFinal bool + TableEnd Pos + TablePos Pos + func (t *TableExpr) Accept(visitor ASTVisitor) error + func (t *TableExpr) End() Pos + func (t *TableExpr) Pos() Pos + func (t *TableExpr) String() string + type TableFunctionExpr struct + Args *TableArgListExpr + Name Expr + func (t *TableFunctionExpr) Accept(visitor ASTVisitor) error + func (t *TableFunctionExpr) End() Pos + func (t *TableFunctionExpr) Pos() Pos + func (t *TableFunctionExpr) String() string + type TableIdentifier struct + Database *Ident + Table *Ident + func (t *TableIdentifier) Accept(visitor ASTVisitor) error + func (t *TableIdentifier) End() Pos + func (t *TableIdentifier) Pos() Pos + func (t *TableIdentifier) String() string + type TableIndex struct + ColumnExpr *ColumnExpr + ColumnType Expr + Granularity *NumberLiteral + IndexPos Pos + Name *NestedIdentifier + func (a *TableIndex) Accept(visitor ASTVisitor) error + func (a *TableIndex) End() Pos + func (a *TableIndex) Pos() Pos + func (a *TableIndex) String() string + type TableProjection struct + Identifier *NestedIdentifier + ProjectionPos Pos + Select *ProjectionSelectStmt + func (t *TableProjection) Accept(visitor ASTVisitor) error + func (t *TableProjection) End() Pos + func (t *TableProjection) Pos() Pos + func (t *TableProjection) String() string + type TableSchemaClause struct + AliasTable *TableIdentifier + Columns []Expr + SchemaEnd Pos + SchemaPos Pos + TableFunction *TableFunctionExpr + func (t *TableSchemaClause) Accept(visitor ASTVisitor) error + func (t *TableSchemaClause) End() Pos + func (t *TableSchemaClause) Pos() Pos + func (t *TableSchemaClause) String() string + type TargetPair struct + New *TableIdentifier + Old *TableIdentifier + func (t *TargetPair) End() Pos + func (t *TargetPair) Pos() Pos + func (t *TargetPair) String() string + type TernaryOperation struct + Condition Expr + FalseExpr Expr + TrueExpr Expr + func (t *TernaryOperation) Accept(visitor ASTVisitor) error + func (t *TernaryOperation) End() Pos + func (t *TernaryOperation) Pos() Pos + func (t *TernaryOperation) String() string + type Token struct + Base int + End Pos + Kind TokenKind + Pos Pos + QuoteType int + String string + func (t *Token) ToString() string + type TokenKind string + const TokenKindArrow + const TokenKindAtSign + const TokenKindColon + const TokenKindComma + const TokenKindDash + const TokenKindDiv + const TokenKindDot + const TokenKindDoubleEQ + const TokenKindEOF + const TokenKindFloat + const TokenKindGE + const TokenKindGT + const TokenKindIdent + const TokenKindInt + const TokenKindKeyword + const TokenKindLBrace + const TokenKindLBracket + const TokenKindLE + const TokenKindLParen + const TokenKindLT + const TokenKindMinus + const TokenKindMod + const TokenKindMul + const TokenKindNE + const TokenKindPlus + const TokenKindQuestionMark + const TokenKindRBrace + const TokenKindRBracket + const TokenKindRParen + const TokenKindSingleEQ + const TokenKindString + type TopClause struct + Number *NumberLiteral + TopEnd Pos + TopPos Pos + WithTies bool + func (t *TopClause) Accept(visitor ASTVisitor) error + func (t *TopClause) End() Pos + func (t *TopClause) Pos() Pos + func (t *TopClause) String() string + type TruncateTable struct + IfExists bool + IsTemporary bool + Name *TableIdentifier + OnCluster *ClusterClause + StatementEnd Pos + TruncatePos Pos + func (t *TruncateTable) Accept(visitor ASTVisitor) error + func (t *TruncateTable) End() Pos + func (t *TruncateTable) Pos() Pos + func (t *TruncateTable) String() string + func (t *TruncateTable) Type() string + type TypeWithParams struct + LeftParenPos Pos + Name *Ident + Params []Literal + RightParenPos Pos + func (s *TypeWithParams) Accept(visitor ASTVisitor) error + func (s *TypeWithParams) End() Pos + func (s *TypeWithParams) Pos() Pos + func (s *TypeWithParams) String() string + func (s *TypeWithParams) Type() string + type TypedPlaceholder struct + LeftBracePos Pos + Name *Ident + RightBracePos Pos + Type ColumnType + func (t *TypedPlaceholder) Accept(visitor ASTVisitor) error + func (t *TypedPlaceholder) End() Pos + func (t *TypedPlaceholder) Pos() Pos + func (t *TypedPlaceholder) String() string + type UUID struct + Value *StringLiteral + func (u *UUID) Accept(visitor ASTVisitor) error + func (u *UUID) End() Pos + func (u *UUID) Pos() Pos + func (u *UUID) String() string + type UnaryExpr struct + Expr Expr + Kind TokenKind + UnaryPos Pos + func (n *UnaryExpr) Accept(visitor ASTVisitor) error + func (n *UnaryExpr) End() Pos + func (n *UnaryExpr) Pos() Pos + func (n *UnaryExpr) String() string + type UseStmt struct + Database *Ident + StatementEnd Pos + UsePos Pos + func (u *UseStmt) Accept(visitor ASTVisitor) error + func (u *UseStmt) End() Pos + func (u *UseStmt) Pos() Pos + func (u *UseStmt) String() string + type UsingClause struct + Using *ColumnExprList + UsingPos Pos + func (u *UsingClause) Accept(visitor ASTVisitor) error + func (u *UsingClause) End() Pos + func (u *UsingClause) Pos() Pos + func (u *UsingClause) String() string + type VisitFunc func(expr Expr) error + type WhenClause struct + Else Expr + ElsePos Pos + Then Expr + ThenPos Pos + When Expr + WhenPos Pos + func (w *WhenClause) Accept(visitor ASTVisitor) error + func (w *WhenClause) End() Pos + func (w *WhenClause) Pos() Pos + func (w *WhenClause) String() string + type WhereClause struct + Expr Expr + WherePos Pos + func (w *WhereClause) Accept(visitor ASTVisitor) error + func (w *WhereClause) End() Pos + func (w *WhereClause) Pos() Pos + func (w *WhereClause) String() string + type WindowClause struct + AsPos Pos + Name *Ident + WindowPos Pos + func (w *WindowClause) Accept(visitor ASTVisitor) error + func (w *WindowClause) End() Pos + func (w *WindowClause) Pos() Pos + func (w *WindowClause) String() string + type WindowExpr struct + Frame *WindowFrameClause + LeftParenPos Pos + OrderBy *OrderByClause + PartitionBy *PartitionByClause + RightParenPos Pos + func (w *WindowExpr) Accept(visitor ASTVisitor) error + func (w *WindowExpr) End() Pos + func (w *WindowExpr) Pos() Pos + func (w *WindowExpr) String() string + type WindowFrameClause struct + Extend Expr + FramePos Pos + Type string + func (f *WindowFrameClause) Accept(visitor ASTVisitor) error + func (f *WindowFrameClause) End() Pos + func (f *WindowFrameClause) Pos() Pos + func (f *WindowFrameClause) String() string + type WindowFrameCurrentRow struct + CurrentPos Pos + RowEnd Pos + func (f *WindowFrameCurrentRow) Accept(visitor ASTVisitor) error + func (f *WindowFrameCurrentRow) End() Pos + func (f *WindowFrameCurrentRow) Pos() Pos + func (f *WindowFrameCurrentRow) String() string + type WindowFrameExtendExpr struct + Expr Expr + func (f *WindowFrameExtendExpr) Accept(visitor ASTVisitor) error + func (f *WindowFrameExtendExpr) End() Pos + func (f *WindowFrameExtendExpr) Pos() Pos + func (f *WindowFrameExtendExpr) String() string + type WindowFrameNumber struct + Direction string + Number *NumberLiteral + UnboundedEnd Pos + func (f *WindowFrameNumber) Accept(visitor ASTVisitor) error + func (f *WindowFrameNumber) End() Pos + func (f *WindowFrameNumber) Pos() Pos + func (f *WindowFrameNumber) String() string + type WindowFrameUnbounded struct + Direction string + UnboundedEnd Pos + UnboundedPos Pos + func (f *WindowFrameUnbounded) Accept(visitor ASTVisitor) error + func (f *WindowFrameUnbounded) End() Pos + func (f *WindowFrameUnbounded) Pos() Pos + func (f *WindowFrameUnbounded) String() string + type WindowFunctionExpr struct + Function *FunctionExpr + OverExpr Expr + OverPos Pos + func (w *WindowFunctionExpr) Accept(visitor ASTVisitor) error + func (w *WindowFunctionExpr) End() Pos + func (w *WindowFunctionExpr) Pos() Pos + func (w *WindowFunctionExpr) String() string + type WithClause struct + CTEs []*CTEStmt + EndPos Pos + WithPos Pos + func (w *WithClause) Accept(visitor ASTVisitor) error + func (w *WithClause) End() Pos + func (w *WithClause) Pos() Pos + func (w *WithClause) String() string + type WithTimeoutClause struct + Expr Expr + Number *NumberLiteral + WithTimeoutPos Pos + func (w *WithTimeoutClause) Accept(visitor ASTVisitor) error + func (w *WithTimeoutClause) End() Pos + func (w *WithTimeoutClause) Pos() Pos + func (w *WithTimeoutClause) String() string