ast

package
v0.5.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Walk

func Walk(n Node, cb func(Node) error) error

Types

type AbortBatchStatementNode

type AbortBatchStatementNode struct {
	*StatementBaseNode
}

type AddColumnActionNode

type AddColumnActionNode struct {
	*AlterActionBaseNode
}

func (*AddColumnActionNode) ColumnDefinition

func (n *AddColumnActionNode) ColumnDefinition() *ColumnDefinitionNode

func (*AddColumnActionNode) ColumnPosition

func (n *AddColumnActionNode) ColumnPosition() *ColumnPositionNode

func (*AddColumnActionNode) FillExpression

func (n *AddColumnActionNode) FillExpression() ExpressionNode

func (*AddColumnActionNode) IsIfNotExists

func (n *AddColumnActionNode) IsIfNotExists() bool

func (*AddColumnActionNode) SetIsIfNotExists

func (n *AddColumnActionNode) SetIsIfNotExists(isIfNotExists bool)

type AddConstraintActionNode

type AddConstraintActionNode struct {
	*AlterActionBaseNode
}

func (*AddConstraintActionNode) Constraint

func (*AddConstraintActionNode) IsIfNotExists

func (n *AddConstraintActionNode) IsIfNotExists() bool

func (*AddConstraintActionNode) SetIsIfNotExists

func (n *AddConstraintActionNode) SetIsIfNotExists(isIfNotExists bool)

type AddToRestricteeListClauseNode

type AddToRestricteeListClauseNode struct {
	*AlterActionBaseNode
}

func (*AddToRestricteeListClauseNode) IsIfNotExists

func (n *AddToRestricteeListClauseNode) IsIfNotExists() bool

func (*AddToRestricteeListClauseNode) RestricteeList

func (n *AddToRestricteeListClauseNode) RestricteeList() *GranteeListNode

func (*AddToRestricteeListClauseNode) SetIsIfNotExists

func (n *AddToRestricteeListClauseNode) SetIsIfNotExists(isIfNotExists bool)

type AliasNode

type AliasNode struct {
	*BaseNode
}

func (*AliasNode) Identifier

func (n *AliasNode) Identifier() *IdentifierNode

func (*AliasNode) Name

func (n *AliasNode) Name() string

type AlterActionBaseNode

type AlterActionBaseNode struct {
	*BaseNode
}

func (*AlterActionBaseNode) SQLForAlterAction

func (n *AlterActionBaseNode) SQLForAlterAction() string

type AlterActionListNode

type AlterActionListNode struct {
	*BaseNode
}

func (*AlterActionListNode) Actions

func (n *AlterActionListNode) Actions() []AlterActionNode

type AlterActionNode

type AlterActionNode interface {
	Node
}

type AlterAllRowAccessPoliciesStatementNode

type AlterAllRowAccessPoliciesStatementNode struct {
	*StatementBaseNode
}

func (*AlterAllRowAccessPoliciesStatementNode) AlterAction

func (*AlterAllRowAccessPoliciesStatementNode) TableNamePath

type AlterColumnDropDefaultActionNode

type AlterColumnDropDefaultActionNode struct {
	*AlterActionBaseNode
}

func (*AlterColumnDropDefaultActionNode) ColumnName

func (*AlterColumnDropDefaultActionNode) IsIfExists

func (n *AlterColumnDropDefaultActionNode) IsIfExists() bool

func (*AlterColumnDropDefaultActionNode) SetIsIfExists

func (n *AlterColumnDropDefaultActionNode) SetIsIfExists(isIfNotExists bool)

type AlterColumnDropNotNullActionNode

type AlterColumnDropNotNullActionNode struct {
	*AlterActionBaseNode
}

func (*AlterColumnDropNotNullActionNode) ColumnName

func (*AlterColumnDropNotNullActionNode) IsIfExists

func (n *AlterColumnDropNotNullActionNode) IsIfExists() bool

func (*AlterColumnDropNotNullActionNode) SetIsIfExists

func (n *AlterColumnDropNotNullActionNode) SetIsIfExists(isIfNotExists bool)

type AlterColumnOptionsActionNode

type AlterColumnOptionsActionNode struct {
	*AlterActionBaseNode
}

func (*AlterColumnOptionsActionNode) ColumnName

func (*AlterColumnOptionsActionNode) IsIfExists

func (n *AlterColumnOptionsActionNode) IsIfExists() bool

func (*AlterColumnOptionsActionNode) OptionsList

func (*AlterColumnOptionsActionNode) SetIsIfExists

func (n *AlterColumnOptionsActionNode) SetIsIfExists(isIfNotExists bool)

type AlterColumnSetDefaultActionNode

type AlterColumnSetDefaultActionNode struct {
	*AlterActionBaseNode
}

func (*AlterColumnSetDefaultActionNode) ColumnName

func (*AlterColumnSetDefaultActionNode) DefaultExpression

func (n *AlterColumnSetDefaultActionNode) DefaultExpression() ExpressionNode

func (*AlterColumnSetDefaultActionNode) IsIfExists

func (n *AlterColumnSetDefaultActionNode) IsIfExists() bool

func (*AlterColumnSetDefaultActionNode) SetIsIfExists

func (n *AlterColumnSetDefaultActionNode) SetIsIfExists(isIfNotExists bool)

type AlterColumnTypeActionNode

type AlterColumnTypeActionNode struct {
	*AlterActionBaseNode
}

func (*AlterColumnTypeActionNode) Collate

func (n *AlterColumnTypeActionNode) Collate() *CollateNode

func (*AlterColumnTypeActionNode) ColumnName

func (n *AlterColumnTypeActionNode) ColumnName() *IdentifierNode

func (*AlterColumnTypeActionNode) IsIfExists

func (n *AlterColumnTypeActionNode) IsIfExists() bool

func (*AlterColumnTypeActionNode) Schema

func (*AlterColumnTypeActionNode) SetIsIfExists

func (n *AlterColumnTypeActionNode) SetIsIfExists(isIfNotExists bool)

type AlterConstraintEnforcementActionNode

type AlterConstraintEnforcementActionNode struct {
	*AlterActionBaseNode
}

func (*AlterConstraintEnforcementActionNode) ConstraintName

func (*AlterConstraintEnforcementActionNode) IsEnforced

func (*AlterConstraintEnforcementActionNode) IsIfExists

func (*AlterConstraintEnforcementActionNode) SetIsEnforced

func (n *AlterConstraintEnforcementActionNode) SetIsEnforced(enforced bool)

func (*AlterConstraintEnforcementActionNode) SetIsIfExists

func (n *AlterConstraintEnforcementActionNode) SetIsIfExists(isIfNotExists bool)

type AlterConstraintSetOptionsActionNode

type AlterConstraintSetOptionsActionNode struct {
	*AlterActionBaseNode
}

func (*AlterConstraintSetOptionsActionNode) ConstraintName

func (*AlterConstraintSetOptionsActionNode) IsIfExists

func (n *AlterConstraintSetOptionsActionNode) IsIfExists() bool

func (*AlterConstraintSetOptionsActionNode) OptionsList

func (*AlterConstraintSetOptionsActionNode) SetIsIfExists

func (n *AlterConstraintSetOptionsActionNode) SetIsIfExists(isIfNotExists bool)

type AlterDatabaseStatementNode

type AlterDatabaseStatementNode struct {
	*AlterStatementBaseNode
}

type AlterEntityStatementNode

type AlterEntityStatementNode struct {
	*AlterStatementBaseNode
}

func (*AlterEntityStatementNode) Type

type AlterMaterializedViewStatementNode

type AlterMaterializedViewStatementNode struct {
	*AlterStatementBaseNode
}

type AlterPrivilegeRestrictionStatementNode

type AlterPrivilegeRestrictionStatementNode struct {
	*AlterStatementBaseNode
}

func (*AlterPrivilegeRestrictionStatementNode) ObjectType

func (*AlterPrivilegeRestrictionStatementNode) Privileges

type AlterRowAccessPolicyStatementNode

type AlterRowAccessPolicyStatementNode struct {
	*AlterStatementBaseNode
}

func (*AlterRowAccessPolicyStatementNode) Name

type AlterSchemaStatementNode

type AlterSchemaStatementNode struct {
	*AlterStatementBaseNode
}

type AlterStatementBaseNode

type AlterStatementBaseNode struct {
	*DdlStatementBaseNode
}

func (*AlterStatementBaseNode) ActionList

func (*AlterStatementBaseNode) IsIfExists

func (n *AlterStatementBaseNode) IsIfExists() bool

func (*AlterStatementBaseNode) Path

func (*AlterStatementBaseNode) SetIsIfExists

func (n *AlterStatementBaseNode) SetIsIfExists(isIfExists bool)

type AlterTableStatementNode

type AlterTableStatementNode struct {
	*AlterStatementBaseNode
}

type AlterViewStatementNode

type AlterViewStatementNode struct {
	*AlterStatementBaseNode
}

type AnalyticFunctionCallNode

type AnalyticFunctionCallNode struct {
	*ExpressionBaseNode
}

func (*AnalyticFunctionCallNode) Function

func (*AnalyticFunctionCallNode) FunctionWithGroupRows

func (n *AnalyticFunctionCallNode) FunctionWithGroupRows() *FunctionCallWithGroupRowsNode

func (*AnalyticFunctionCallNode) WindowSpec

type AnalyzeStatementNode

type AnalyzeStatementNode struct {
	*StatementBaseNode
}

func (*AnalyzeStatementNode) OptionsList

func (n *AnalyzeStatementNode) OptionsList() *OptionsListNode

func (*AnalyzeStatementNode) TableAndColumnInfoList

func (n *AnalyzeStatementNode) TableAndColumnInfoList() *TableAndColumnInfoListNode

type AndExprNode

type AndExprNode struct {
	*ExpressionBaseNode
}

func (*AndExprNode) Conjuncts

func (n *AndExprNode) Conjuncts() []ExpressionNode

type AnySomeAllOpNode

type AnySomeAllOpNode struct {
	*BaseNode
}

func (*AnySomeAllOpNode) Op

func (*AnySomeAllOpNode) SQLForOperator

func (n *AnySomeAllOpNode) SQLForOperator() string

func (*AnySomeAllOpNode) SetOp

func (n *AnySomeAllOpNode) SetOp(op AnySomeAllOpType)

type AnySomeAllOpType

type AnySomeAllOpType int
const (
	UninitializedAnySomeAllOp AnySomeAllOpType = iota
	AnyOp
	SomeOp
	AllOp
)

func (AnySomeAllOpType) String

func (o AnySomeAllOpType) String() string

type ArrayColumnSchemaNode

type ArrayColumnSchemaNode struct {
	*ColumnSchemaNode
}

func (*ArrayColumnSchemaNode) ElementSchema

func (n *ArrayColumnSchemaNode) ElementSchema() *ColumnSchemaNode

type ArrayConstructorNode

type ArrayConstructorNode struct {
	*ExpressionBaseNode
}

func (*ArrayConstructorNode) Elements

func (n *ArrayConstructorNode) Elements() []ExpressionNode

func (*ArrayConstructorNode) Type

type ArrayElementNode

type ArrayElementNode struct {
	*GeneralizedPathExpressionBaseNode
}

func (*ArrayElementNode) Array

func (n *ArrayElementNode) Array() ExpressionNode

func (*ArrayElementNode) Position

func (n *ArrayElementNode) Position() ExpressionNode

type ArrayTypeNode

type ArrayTypeNode struct {
	*TypeBaseNode
}

func (*ArrayTypeNode) ElementType

func (n *ArrayTypeNode) ElementType() TypeNode

type AsMode

type AsMode int
const (
	NotSetMode AsMode = iota
	StructMode
	ValueMode
	TypeNameMode
)

func (AsMode) String

func (m AsMode) String() string

type AssertRowsModifiedNode

type AssertRowsModifiedNode struct {
	*BaseNode
}

func (*AssertRowsModifiedNode) NumRows

type AssertStatementNode

type AssertStatementNode struct {
	*StatementBaseNode
}

func (*AssertStatementNode) Description

func (n *AssertStatementNode) Description() *StringLiteralNode

func (*AssertStatementNode) Expr

type AssignmentFromStructNode

type AssignmentFromStructNode struct {
	*ScriptStatementNode
}

func (*AssignmentFromStructNode) StructExpression

func (n *AssignmentFromStructNode) StructExpression() ExpressionNode

func (*AssignmentFromStructNode) Variables

type AuxLoadDataFromFilesOptionsListNode

type AuxLoadDataFromFilesOptionsListNode struct {
	*BaseNode
}

func (*AuxLoadDataFromFilesOptionsListNode) OptionsList

type AuxLoadDataStatementNode

type AuxLoadDataStatementNode struct {
	*CreateTableStmtBaseNode
}

func (*AuxLoadDataStatementNode) ClusterBy

func (n *AuxLoadDataStatementNode) ClusterBy() *ClusterByNode

func (*AuxLoadDataStatementNode) FromFiles

func (*AuxLoadDataStatementNode) InsertionMode

func (n *AuxLoadDataStatementNode) InsertionMode() InsertionMode

func (*AuxLoadDataStatementNode) PartitionBy

func (n *AuxLoadDataStatementNode) PartitionBy() *PartitionByNode

func (*AuxLoadDataStatementNode) SetInsertionMode

func (n *AuxLoadDataStatementNode) SetInsertionMode(mode InsertionMode)

func (*AuxLoadDataStatementNode) WithConnectionClause

func (n *AuxLoadDataStatementNode) WithConnectionClause() *WithConnectionClauseNode

func (*AuxLoadDataStatementNode) WithPartitionColumnsClause

func (n *AuxLoadDataStatementNode) WithPartitionColumnsClause() *WithPartitionColumnsClauseNode

type BaseNode

type BaseNode struct {
	// contains filtered or unexported fields
}

func (*BaseNode) AddChild

func (n *BaseNode) AddChild(child Node)

func (*BaseNode) AddChildFront

func (n *BaseNode) AddChildFront(child Node)

func (*BaseNode) Child

func (n *BaseNode) Child(i int) Node

func (*BaseNode) DebugString

func (n *BaseNode) DebugString(maxDepth int) string

func (*BaseNode) FindChildIndex

func (n *BaseNode) FindChildIndex(kind Kind) int

func (*BaseNode) ID

func (n *BaseNode) ID() int

func (*BaseNode) IsAlterStatement

func (n *BaseNode) IsAlterStatement() bool

func (*BaseNode) IsCreateStatement

func (n *BaseNode) IsCreateStatement() bool

func (*BaseNode) IsDdlStatement

func (n *BaseNode) IsDdlStatement() bool

func (*BaseNode) IsExpression

func (n *BaseNode) IsExpression() bool

func (*BaseNode) IsLeaf

func (n *BaseNode) IsLeaf() bool

func (*BaseNode) IsLoopStatement

func (n *BaseNode) IsLoopStatement() bool

func (*BaseNode) IsQueryExpression

func (n *BaseNode) IsQueryExpression() bool

func (*BaseNode) IsScriptStatement

func (n *BaseNode) IsScriptStatement() bool

func (*BaseNode) IsSqlStatement

func (n *BaseNode) IsSqlStatement() bool

func (*BaseNode) IsStatement

func (n *BaseNode) IsStatement() bool

func (*BaseNode) IsTableExpression

func (n *BaseNode) IsTableExpression() bool

func (*BaseNode) IsType

func (n *BaseNode) IsType() bool

func (*BaseNode) Kind

func (n *BaseNode) Kind() Kind

func (*BaseNode) LocationString

func (n *BaseNode) LocationString() string

func (*BaseNode) MoveEndLocationBack

func (n *BaseNode) MoveEndLocationBack(bytes int)

func (*BaseNode) MoveStartLocation

func (n *BaseNode) MoveStartLocation(bytes int)

func (*BaseNode) MoveStartLocationBack

func (n *BaseNode) MoveStartLocationBack(bytes int)

func (*BaseNode) MutableChild

func (n *BaseNode) MutableChild(i int) Node

func (*BaseNode) NumChildren

func (n *BaseNode) NumChildren() int

func (*BaseNode) Parent

func (n *BaseNode) Parent() Node

func (*BaseNode) ParseLocationRange

func (n *BaseNode) ParseLocationRange() *types.ParseLocationRange

func (*BaseNode) SetEndLocation

func (n *BaseNode) SetEndLocation(v *types.ParseLocationPoint)

func (*BaseNode) SetParent

func (n *BaseNode) SetParent(parent Node)

func (*BaseNode) SetStartLocation

func (n *BaseNode) SetStartLocation(v *types.ParseLocationPoint)

func (*BaseNode) SetStartLocationToEndLocation

func (n *BaseNode) SetStartLocationToEndLocation()

func (*BaseNode) SingleNodeDebugString

func (n *BaseNode) SingleNodeDebugString() string

type BeginEndBlockNode

type BeginEndBlockNode struct {
	*ScriptStatementNode
}

func (*BeginEndBlockNode) HandlerList

func (n *BeginEndBlockNode) HandlerList() *ExceptionHandlerListNode

func (*BeginEndBlockNode) HasExceptionHandler

func (n *BeginEndBlockNode) HasExceptionHandler() bool

func (*BeginEndBlockNode) Label

func (n *BeginEndBlockNode) Label() *LabelNode

func (*BeginEndBlockNode) StatementList

func (n *BeginEndBlockNode) StatementList() []StatementNode

func (*BeginEndBlockNode) StatementListNode

func (n *BeginEndBlockNode) StatementListNode() *StatementListNode

type BeginStatementNode

type BeginStatementNode struct {
	*StatementBaseNode
}

func (*BeginStatementNode) ModeList

type BetweenExpressionNode

type BetweenExpressionNode struct {
	*ExpressionBaseNode
}

func (*BetweenExpressionNode) High

func (*BetweenExpressionNode) IsNot

func (n *BetweenExpressionNode) IsNot() bool

func (*BetweenExpressionNode) Lhs

func (*BetweenExpressionNode) Low

func (*BetweenExpressionNode) SetIsNot

func (n *BetweenExpressionNode) SetIsNot(isNot bool)

type BigNumericLiteralNode

type BigNumericLiteralNode struct {
	*LeafBaseNode
}

func (*BigNumericLiteralNode) SetValue

func (n *BigNumericLiteralNode) SetValue(v string)

func (*BigNumericLiteralNode) Value

func (n *BigNumericLiteralNode) Value() string

type BinaryExpressionNode

type BinaryExpressionNode struct {
	*ExpressionBaseNode
}

func (*BinaryExpressionNode) IsNot

func (n *BinaryExpressionNode) IsNot() bool

func (*BinaryExpressionNode) Lhs

func (*BinaryExpressionNode) Op

func (*BinaryExpressionNode) Rhs

func (*BinaryExpressionNode) SQLForOperator

func (n *BinaryExpressionNode) SQLForOperator() string

func (*BinaryExpressionNode) SetIsNot

func (n *BinaryExpressionNode) SetIsNot(isNot bool)

func (*BinaryExpressionNode) SetOp

func (n *BinaryExpressionNode) SetOp(op BinaryOp)

type BinaryOp

type BinaryOp int
const (
	NotSetOp BinaryOp = iota
	LikeOp
	IsOp
	EqOp
	NeOp
	Ne2Op
	GtOp
	LtOp
	GeOp
	LeOp
	BitwiseOrOp
	BitwiseXorOp
	BitwiseAndOp
	PlusOp
	MinusOp
	MultiplyOp
	DivideOp
	ConcatOP
	DistinctOp
)

func (BinaryOp) String

func (o BinaryOp) String() string

type BitwiseShiftExpressionNode

type BitwiseShiftExpressionNode struct {
	*ExpressionBaseNode
}

func (*BitwiseShiftExpressionNode) IsLeftShift

func (n *BitwiseShiftExpressionNode) IsLeftShift() bool

func (*BitwiseShiftExpressionNode) Lhs

func (*BitwiseShiftExpressionNode) Rhs

func (*BitwiseShiftExpressionNode) SetIsLeftShift

func (n *BitwiseShiftExpressionNode) SetIsLeftShift(isLeftShift bool)

type BooleanLiteralNode

type BooleanLiteralNode struct {
	*LeafBaseNode
}

func (*BooleanLiteralNode) SetValue

func (n *BooleanLiteralNode) SetValue(value bool)

func (*BooleanLiteralNode) Value

func (n *BooleanLiteralNode) Value() bool

type BreakContinueKeyword

type BreakContinueKeyword int
const (
	BreakKeyword BreakContinueKeyword = iota
	LeaveKeyword
	ContinueKeyword
	IterateKeyword
)

func (BreakContinueKeyword) String

func (k BreakContinueKeyword) String() string

type BreakContinueStatementNode

type BreakContinueStatementNode struct {
	*ScriptStatementNode
}

func (*BreakContinueStatementNode) Keyword

func (*BreakContinueStatementNode) Label

func (*BreakContinueStatementNode) SetKeyword

func (n *BreakContinueStatementNode) SetKeyword(keyword BreakContinueKeyword)

type BreakStatementNode

type BreakStatementNode struct {
	*BreakContinueStatementNode
}

func (*BreakStatementNode) Keyword

func (*BreakStatementNode) SetKeyword

func (n *BreakStatementNode) SetKeyword(keyword BreakContinueKeyword)

type BytesLiteralNode

type BytesLiteralNode struct {
	*LeafBaseNode
}

func (*BytesLiteralNode) SetValue

func (n *BytesLiteralNode) SetValue(v []byte)

func (*BytesLiteralNode) Value

func (n *BytesLiteralNode) Value() []byte

type CallStatementNode

type CallStatementNode struct {
	*StatementBaseNode
}

func (*CallStatementNode) Arguments

func (n *CallStatementNode) Arguments() []*TVFArgumentNode

func (*CallStatementNode) ProcedureName

func (n *CallStatementNode) ProcedureName() *PathExpressionNode

type CaseNoValueExpressionNode

type CaseNoValueExpressionNode struct {
	*ExpressionBaseNode
}

func (*CaseNoValueExpressionNode) Arguments

func (n *CaseNoValueExpressionNode) Arguments() []ExpressionNode

type CaseStatementNode

type CaseStatementNode struct {
	*ScriptStatementNode
}

func (*CaseStatementNode) ElseList

func (n *CaseStatementNode) ElseList() *StatementListNode

func (*CaseStatementNode) Expression

func (n *CaseStatementNode) Expression() ExpressionNode

func (*CaseStatementNode) WhenThenClauses

func (n *CaseStatementNode) WhenThenClauses() *WhenThenClauseListNode

type CaseValueExpressionNode

type CaseValueExpressionNode struct {
	*ExpressionBaseNode
}

func (*CaseValueExpressionNode) Arguments

func (n *CaseValueExpressionNode) Arguments() []ExpressionNode

type CastExpressionNode

type CastExpressionNode struct {
	*ExpressionBaseNode
}

func (*CastExpressionNode) Expr

func (*CastExpressionNode) Format

func (n *CastExpressionNode) Format() *FormatClauseNode

func (*CastExpressionNode) IsSafeCast

func (n *CastExpressionNode) IsSafeCast() bool

func (*CastExpressionNode) SetIsSafeCast

func (n *CastExpressionNode) SetIsSafeCast(isSafe bool)

func (*CastExpressionNode) Type

func (n *CastExpressionNode) Type() TypeNode

type CheckConstraintNode

type CheckConstraintNode struct {
	*TableConstraintBaseNode
}

func (*CheckConstraintNode) Expression

func (n *CheckConstraintNode) Expression() ExpressionNode

func (*CheckConstraintNode) IsEnforced

func (n *CheckConstraintNode) IsEnforced() bool

func (*CheckConstraintNode) OptionsList

func (n *CheckConstraintNode) OptionsList() *OptionsListNode

func (*CheckConstraintNode) SetIsEnforced

func (n *CheckConstraintNode) SetIsEnforced(enforced bool)

type ClampedBetweenModifierNode

type ClampedBetweenModifierNode struct {
	*BaseNode
}

func (*ClampedBetweenModifierNode) High

func (*ClampedBetweenModifierNode) Low

type CloneDataSourceListNode

type CloneDataSourceListNode struct {
	*BaseNode
}

func (*CloneDataSourceListNode) DataSources

func (n *CloneDataSourceListNode) DataSources() []*CloneDataSourceNode

type CloneDataSourceNode

type CloneDataSourceNode struct {
	*TableDataSourceNode
}

type CloneDataStatementNode

type CloneDataStatementNode struct {
	*StatementBaseNode
}

func (*CloneDataStatementNode) DataSourceList

func (n *CloneDataStatementNode) DataSourceList() *CloneDataSourceListNode

func (*CloneDataStatementNode) TargetPath

func (n *CloneDataStatementNode) TargetPath() *PathExpressionNode

type ClusterByNode

type ClusterByNode struct {
	*BaseNode
}

func (*ClusterByNode) ClusteringExpressions

func (n *ClusterByNode) ClusteringExpressions() []ExpressionNode

type CollateNode

type CollateNode struct {
	*BaseNode
}

func (*CollateNode) Name

func (n *CollateNode) Name() ExpressionNode

type ColumnAttributeBaseNode

type ColumnAttributeBaseNode struct {
	*BaseNode
}

type ColumnAttributeListNode

type ColumnAttributeListNode struct {
	*BaseNode
}

func (*ColumnAttributeListNode) Values

type ColumnAttributeNode

type ColumnAttributeNode interface {
	Node
}

type ColumnDefinitionNode

type ColumnDefinitionNode struct {
	*TableElementBaseNode
}

func (*ColumnDefinitionNode) Name

func (*ColumnDefinitionNode) Schema

type ColumnListNode

type ColumnListNode struct {
	*BaseNode
}

func (*ColumnListNode) Identifiers

func (n *ColumnListNode) Identifiers() []*IdentifierNode

type ColumnPositionNode

type ColumnPositionNode struct {
	*BaseNode
}

func (*ColumnPositionNode) Identifier

func (n *ColumnPositionNode) Identifier() *IdentifierNode

func (*ColumnPositionNode) SetType

func (*ColumnPositionNode) Type

type ColumnRelativePositionType

type ColumnRelativePositionType int
const (
	ColumnRelativePositionPreceding ColumnRelativePositionType = iota
	ColumnRelativePositionFollowing
)

func (ColumnRelativePositionType) String

type ColumnSchemaNode

type ColumnSchemaNode struct {
	*BaseNode
}

func (*ColumnSchemaNode) Attributes

func (n *ColumnSchemaNode) Attributes() *ColumnAttributeListNode

func (*ColumnSchemaNode) Collate

func (n *ColumnSchemaNode) Collate() *CollateNode

func (*ColumnSchemaNode) ContainsAttribute

func (n *ColumnSchemaNode) ContainsAttribute(kind Kind) bool

func (*ColumnSchemaNode) DefaultExpression

func (n *ColumnSchemaNode) DefaultExpression() ExpressionNode

func (*ColumnSchemaNode) GeneratedColumnInfo

func (n *ColumnSchemaNode) GeneratedColumnInfo() *GeneratedColumnInfoNode

func (*ColumnSchemaNode) OptionsList

func (n *ColumnSchemaNode) OptionsList() *OptionsListNode

func (*ColumnSchemaNode) TypeParameters

func (n *ColumnSchemaNode) TypeParameters() *TypeParameterListNode

type CommitStatementNode

type CommitStatementNode struct {
	*StatementBaseNode
}

type ConnectionClauseNode

type ConnectionClauseNode struct {
	*BaseNode
}

func (*ConnectionClauseNode) ConnectionPath

func (n *ConnectionClauseNode) ConnectionPath() *PathExpressionNode

type ContinueStatementNode

type ContinueStatementNode struct {
	*BreakContinueStatementNode
}

func (*ContinueStatementNode) Keyword

func (*ContinueStatementNode) SetKeyword

func (n *ContinueStatementNode) SetKeyword(keyword BreakContinueKeyword)

type CopyDataSourceNode

type CopyDataSourceNode struct {
	*TableDataSourceNode
}

type CreateConstantStatementNode

type CreateConstantStatementNode struct {
	*CreateStatementNode
}

func (*CreateConstantStatementNode) Expr

func (*CreateConstantStatementNode) Name

type CreateDatabaseStatementNode

type CreateDatabaseStatementNode struct {
	*StatementBaseNode
}

func (*CreateDatabaseStatementNode) Name

func (*CreateDatabaseStatementNode) OptionsList

func (n *CreateDatabaseStatementNode) OptionsList() *OptionsListNode

type CreateEntityStatementNode

type CreateEntityStatementNode struct {
	*CreateStatementNode
}

func (*CreateEntityStatementNode) JSONBody

func (*CreateEntityStatementNode) Name

func (*CreateEntityStatementNode) OptionsList

func (n *CreateEntityStatementNode) OptionsList() *OptionsListNode

func (*CreateEntityStatementNode) TextBody

func (*CreateEntityStatementNode) Type

type CreateExternalTableStatementNode

type CreateExternalTableStatementNode struct {
	*CreateTableStmtBaseNode
}

func (*CreateExternalTableStatementNode) WithConnectionClause

func (*CreateExternalTableStatementNode) WithPartitionColumnsClause

func (n *CreateExternalTableStatementNode) WithPartitionColumnsClause() *WithPartitionColumnsClauseNode

type CreateFunctionStatementNode

type CreateFunctionStatementNode struct {
	*CreateFunctionStmtBaseNode
}

func (*CreateFunctionStatementNode) IsAggregate

func (n *CreateFunctionStatementNode) IsAggregate() bool

func (*CreateFunctionStatementNode) IsRemote

func (n *CreateFunctionStatementNode) IsRemote() bool

func (*CreateFunctionStatementNode) ReturnType

func (n *CreateFunctionStatementNode) ReturnType() TypeNode

func (*CreateFunctionStatementNode) SetIsAggregate

func (n *CreateFunctionStatementNode) SetIsAggregate(isAggregate bool)

func (*CreateFunctionStatementNode) SetIsRemote

func (n *CreateFunctionStatementNode) SetIsRemote(isRemote bool)

func (*CreateFunctionStatementNode) SqlFunctionBody

func (n *CreateFunctionStatementNode) SqlFunctionBody() *SqlFunctionBodyNode

func (*CreateFunctionStatementNode) WithConnectionClause

func (n *CreateFunctionStatementNode) WithConnectionClause() *WithConnectionClauseNode

type CreateFunctionStmtBaseNode

type CreateFunctionStmtBaseNode struct {
	*CreateStatementNode
}

func (*CreateFunctionStmtBaseNode) Code

func (*CreateFunctionStmtBaseNode) DeterminismLevel

func (n *CreateFunctionStmtBaseNode) DeterminismLevel() DeterminismLevel

func (*CreateFunctionStmtBaseNode) FunctionDeclaration

func (n *CreateFunctionStmtBaseNode) FunctionDeclaration() *FunctionDeclarationNode

func (*CreateFunctionStmtBaseNode) Language

func (*CreateFunctionStmtBaseNode) OptionsList

func (n *CreateFunctionStmtBaseNode) OptionsList() *OptionsListNode

func (*CreateFunctionStmtBaseNode) SetDeterminismLevel

func (n *CreateFunctionStmtBaseNode) SetDeterminismLevel(level DeterminismLevel)

func (*CreateFunctionStmtBaseNode) SetSqlSecurity

func (n *CreateFunctionStmtBaseNode) SetSqlSecurity(security SqlSecurity)

func (*CreateFunctionStmtBaseNode) SqlSecurity

func (n *CreateFunctionStmtBaseNode) SqlSecurity() SqlSecurity

type CreateIndexStatementNode

type CreateIndexStatementNode struct {
	*CreateStatementNode
}

func (*CreateIndexStatementNode) IndexItemList

func (n *CreateIndexStatementNode) IndexItemList() *IndexItemListNode

func (*CreateIndexStatementNode) IsSearch

func (n *CreateIndexStatementNode) IsSearch() bool

func (*CreateIndexStatementNode) IsUnique

func (n *CreateIndexStatementNode) IsUnique() bool

func (*CreateIndexStatementNode) Name

func (*CreateIndexStatementNode) OptionalIndexSotringExpressions

func (n *CreateIndexStatementNode) OptionalIndexSotringExpressions() *IndexStoringExpressionListNode

func (*CreateIndexStatementNode) OptionalIndexUnnestExpressionList

func (n *CreateIndexStatementNode) OptionalIndexUnnestExpressionList() *IndexUnnestExpressionListNode

func (*CreateIndexStatementNode) OptionalTableAlias

func (n *CreateIndexStatementNode) OptionalTableAlias() *AliasNode

func (*CreateIndexStatementNode) OptionsList

func (n *CreateIndexStatementNode) OptionsList() *OptionsListNode

func (*CreateIndexStatementNode) SetIsSearch

func (n *CreateIndexStatementNode) SetIsSearch(isSearch bool)

func (*CreateIndexStatementNode) SetIsUnique

func (n *CreateIndexStatementNode) SetIsUnique(isUnique bool)

func (*CreateIndexStatementNode) TableName

type CreateMaterializedViewStatementNode

type CreateMaterializedViewStatementNode struct {
	*CreateViewStatementBaseNode
}

func (*CreateMaterializedViewStatementNode) ClusterBy

func (*CreateMaterializedViewStatementNode) PartitionBy

type CreateModelStatementNode

type CreateModelStatementNode struct {
	*CreateStatementNode
}

func (*CreateModelStatementNode) Name

func (*CreateModelStatementNode) OptionsList

func (n *CreateModelStatementNode) OptionsList() *OptionsListNode

func (*CreateModelStatementNode) Query

func (n *CreateModelStatementNode) Query() *QueryNode

func (*CreateModelStatementNode) TransformClause

func (n *CreateModelStatementNode) TransformClause() *TransformClauseNode

type CreatePrivilegeRestrictionStatementNode

type CreatePrivilegeRestrictionStatementNode struct {
	*CreateStatementNode
}

func (*CreatePrivilegeRestrictionStatementNode) NamePath

func (*CreatePrivilegeRestrictionStatementNode) ObjectType

func (*CreatePrivilegeRestrictionStatementNode) Privileges

func (*CreatePrivilegeRestrictionStatementNode) RestrictTo

type CreateProcedureStatementNode

type CreateProcedureStatementNode struct {
	*CreateStatementNode
}

func (*CreateProcedureStatementNode) Body

func (*CreateProcedureStatementNode) Name

func (*CreateProcedureStatementNode) OptionsList

func (*CreateProcedureStatementNode) Parameters

type CreateRowAccessPolicyStatementNode

type CreateRowAccessPolicyStatementNode struct {
	*CreateStatementNode
}

func (*CreateRowAccessPolicyStatementNode) FilterUsing

func (*CreateRowAccessPolicyStatementNode) GrantTo

func (*CreateRowAccessPolicyStatementNode) HasAccessKeyword

func (n *CreateRowAccessPolicyStatementNode) HasAccessKeyword() bool

func (*CreateRowAccessPolicyStatementNode) Name

func (*CreateRowAccessPolicyStatementNode) SetHasAccessKeyword

func (n *CreateRowAccessPolicyStatementNode) SetHasAccessKeyword(v bool)

func (*CreateRowAccessPolicyStatementNode) TargetPath

type CreateSchemaStatementNode

type CreateSchemaStatementNode struct {
	*CreateStatementNode
}

func (*CreateSchemaStatementNode) Collate

func (n *CreateSchemaStatementNode) Collate() *CollateNode

func (*CreateSchemaStatementNode) Name

func (*CreateSchemaStatementNode) OptionsList

func (n *CreateSchemaStatementNode) OptionsList() *OptionsListNode

type CreateSnapshotTableStatementNode

type CreateSnapshotTableStatementNode struct {
	*CreateStatementNode
}

func (*CreateSnapshotTableStatementNode) CloneDataSource

func (*CreateSnapshotTableStatementNode) Name

func (*CreateSnapshotTableStatementNode) OptionsList

type CreateStatementNode

type CreateStatementNode struct {
	*DdlStatementBaseNode
}

func (*CreateStatementNode) IsDefaultScope

func (n *CreateStatementNode) IsDefaultScope() bool

func (*CreateStatementNode) IsIfNotExists

func (n *CreateStatementNode) IsIfNotExists() bool

func (*CreateStatementNode) IsOrReplace

func (n *CreateStatementNode) IsOrReplace() bool

func (*CreateStatementNode) IsPrivate

func (n *CreateStatementNode) IsPrivate() bool

func (*CreateStatementNode) IsPublic

func (n *CreateStatementNode) IsPublic() bool

func (*CreateStatementNode) IsTemp

func (n *CreateStatementNode) IsTemp() bool

func (*CreateStatementNode) Scope

func (*CreateStatementNode) SetIsIfNotExists

func (n *CreateStatementNode) SetIsIfNotExists(isIfNotExists bool)

func (*CreateStatementNode) SetIsOrReplace

func (n *CreateStatementNode) SetIsOrReplace(isOrReplace bool)

func (*CreateStatementNode) SetScope

func (n *CreateStatementNode) SetScope(scope CreateStatementScope)

type CreateStatementScope

type CreateStatementScope int
const (
	CreateStatementDefaultScope CreateStatementScope = iota
	CreateStatementPrivate
	CreateStatementPublic
	CreateStatementTemporary
)

func (CreateStatementScope) String

func (s CreateStatementScope) String() string

type CreateTableFunctionStatementNode

type CreateTableFunctionStatementNode struct {
	*CreateFunctionStmtBaseNode
}

func (*CreateTableFunctionStatementNode) Query

func (*CreateTableFunctionStatementNode) ReturnTVFSchema

func (n *CreateTableFunctionStatementNode) ReturnTVFSchema() *TVFSchemaNode

type CreateTableStatementNode

type CreateTableStatementNode struct {
	*CreateTableStmtBaseNode
}

func (*CreateTableStatementNode) CloneDataSource

func (n *CreateTableStatementNode) CloneDataSource() *CloneDataSourceNode

func (*CreateTableStatementNode) ClusterBy

func (n *CreateTableStatementNode) ClusterBy() *ClusterByNode

func (*CreateTableStatementNode) CopyDataSource

func (n *CreateTableStatementNode) CopyDataSource() *CopyDataSourceNode

func (*CreateTableStatementNode) PartitionBy

func (n *CreateTableStatementNode) PartitionBy() *PartitionByNode

func (*CreateTableStatementNode) Query

func (n *CreateTableStatementNode) Query() *QueryNode

type CreateTableStmtBaseNode

type CreateTableStmtBaseNode struct {
	*CreateStatementNode
}

func (*CreateTableStmtBaseNode) Collate

func (n *CreateTableStmtBaseNode) Collate() *CollateNode

func (*CreateTableStmtBaseNode) LikeTableName

func (n *CreateTableStmtBaseNode) LikeTableName() *PathExpressionNode

func (*CreateTableStmtBaseNode) Name

func (*CreateTableStmtBaseNode) OptionsList

func (n *CreateTableStmtBaseNode) OptionsList() *OptionsListNode

func (*CreateTableStmtBaseNode) TableElementList

func (n *CreateTableStmtBaseNode) TableElementList() *TableElementListNode

type CreateViewStatementBaseNode

type CreateViewStatementBaseNode struct {
	*CreateStatementNode
}

func (*CreateViewStatementBaseNode) ColumnList

func (*CreateViewStatementBaseNode) Name

func (*CreateViewStatementBaseNode) OptionsList

func (n *CreateViewStatementBaseNode) OptionsList() *OptionsListNode

func (*CreateViewStatementBaseNode) Query

type CreateViewStatementNode

type CreateViewStatementNode struct {
	*CreateViewStatementBaseNode
}

type DateOrTimeLiteralNode

type DateOrTimeLiteralNode struct {
	*ExpressionBaseNode
}

func (*DateOrTimeLiteralNode) SetTypeKind

func (n *DateOrTimeLiteralNode) SetTypeKind(kind TypeKind)

func (*DateOrTimeLiteralNode) StringLiteral

func (n *DateOrTimeLiteralNode) StringLiteral() *StringLiteralNode

func (*DateOrTimeLiteralNode) TypeKind

func (n *DateOrTimeLiteralNode) TypeKind() TypeKind

type DdlStatementBaseNode

type DdlStatementBaseNode struct {
	*StatementBaseNode
}

func (*DdlStatementBaseNode) DdlTarget

func (n *DdlStatementBaseNode) DdlTarget() *PathExpressionNode

type DdlStatementNode

type DdlStatementNode interface {
	StatementNode
}

type DefaultLiteralNode

type DefaultLiteralNode struct {
	*ExpressionBaseNode
}

type DefineTableStatementNode

type DefineTableStatementNode struct {
	*StatementBaseNode
}

func (*DefineTableStatementNode) Name

func (*DefineTableStatementNode) OptionsList

func (n *DefineTableStatementNode) OptionsList() *OptionsListNode

type DeleteStatementNode

type DeleteStatementNode struct {
	*StatementBaseNode
}

func (*DeleteStatementNode) Alias

func (n *DeleteStatementNode) Alias() *AliasNode

func (*DeleteStatementNode) AssertRowsModified

func (n *DeleteStatementNode) AssertRowsModified() *AssertRowsModifiedNode

func (*DeleteStatementNode) Offset

func (n *DeleteStatementNode) Offset() *WithOffsetNode

func (*DeleteStatementNode) Returning

func (n *DeleteStatementNode) Returning() *ReturningClauseNode

func (*DeleteStatementNode) TargetPath

func (*DeleteStatementNode) Where

type DescribeStatementNode

type DescribeStatementNode struct {
	*StatementBaseNode
}

func (*DescribeStatementNode) Name

func (*DescribeStatementNode) OptionalFromName

func (n *DescribeStatementNode) OptionalFromName() *PathExpressionNode

func (*DescribeStatementNode) OptionalIdentifier

func (n *DescribeStatementNode) OptionalIdentifier() *IdentifierNode

type DescriptorColumnListNode

type DescriptorColumnListNode struct {
	*BaseNode
}

func (*DescriptorColumnListNode) DescriptorColumnList

func (n *DescriptorColumnListNode) DescriptorColumnList() []*DescriptorColumnNode

type DescriptorColumnNode

type DescriptorColumnNode struct {
	*BaseNode
}

func (*DescriptorColumnNode) Name

type DescriptorNode

type DescriptorNode struct {
	*BaseNode
}

func (*DescriptorNode) Columns

type DeterminismLevel

type DeterminismLevel int
const (
	DeterminismUnspecified DeterminismLevel = iota
	DeterministicLevel
	NotDeterministicLevel
	ImmutableLevel
	StableLevel
	VolatileLevel
)

func (DeterminismLevel) String

func (l DeterminismLevel) String() string

type DotGeneralizedFieldNode

type DotGeneralizedFieldNode struct {
	*GeneralizedPathExpressionBaseNode
}

func (*DotGeneralizedFieldNode) Expr

func (*DotGeneralizedFieldNode) Path

type DotIdentifierNode

type DotIdentifierNode struct {
	*GeneralizedPathExpressionBaseNode
}

func (*DotIdentifierNode) Expr

func (*DotIdentifierNode) Name

func (n *DotIdentifierNode) Name() *IdentifierNode

type DotStarNode

type DotStarNode struct {
	*ExpressionBaseNode
}

func (*DotStarNode) Expr

func (n *DotStarNode) Expr() ExpressionNode

type DotStarWithModifiersNode

type DotStarWithModifiersNode struct {
	*ExpressionBaseNode
}

func (*DotStarWithModifiersNode) Expr

func (*DotStarWithModifiersNode) Modifiers

type DropAllRowAccessPoliciesStatementNode

type DropAllRowAccessPoliciesStatementNode struct {
	*StatementBaseNode
}

func (*DropAllRowAccessPoliciesStatementNode) HasAccessKeyword

func (n *DropAllRowAccessPoliciesStatementNode) HasAccessKeyword() bool

func (*DropAllRowAccessPoliciesStatementNode) SetHasAccessKeyword

func (n *DropAllRowAccessPoliciesStatementNode) SetHasAccessKeyword(keyword bool)

func (*DropAllRowAccessPoliciesStatementNode) TableName

type DropColumnActionNode

type DropColumnActionNode struct {
	*AlterActionBaseNode
}

func (*DropColumnActionNode) ColumnName

func (n *DropColumnActionNode) ColumnName() *IdentifierNode

func (*DropColumnActionNode) IsIfExists

func (n *DropColumnActionNode) IsIfExists() bool

func (*DropColumnActionNode) SetIsIfExists

func (n *DropColumnActionNode) SetIsIfExists(isIfNotExists bool)

type DropConstraintActionNode

type DropConstraintActionNode struct {
	*AlterActionBaseNode
}

func (*DropConstraintActionNode) ConstraintName

func (n *DropConstraintActionNode) ConstraintName() *IdentifierNode

func (*DropConstraintActionNode) IsIfExists

func (n *DropConstraintActionNode) IsIfExists() bool

func (*DropConstraintActionNode) SetIsIfExists

func (n *DropConstraintActionNode) SetIsIfExists(isIfNotExists bool)

type DropEntityStatementNode

type DropEntityStatementNode struct {
	*DdlStatementBaseNode
}

func (*DropEntityStatementNode) EntityType

func (n *DropEntityStatementNode) EntityType() *IdentifierNode

func (*DropEntityStatementNode) IsIfExists

func (n *DropEntityStatementNode) IsIfExists() bool

func (*DropEntityStatementNode) Name

func (*DropEntityStatementNode) SetIsIfExists

func (n *DropEntityStatementNode) SetIsIfExists(isIfExists bool)

type DropFunctionStatementNode

type DropFunctionStatementNode struct {
	*DdlStatementBaseNode
}

func (*DropFunctionStatementNode) IsIfExists

func (n *DropFunctionStatementNode) IsIfExists() bool

func (*DropFunctionStatementNode) Name

func (*DropFunctionStatementNode) Parameters

func (*DropFunctionStatementNode) SetIsIfExists

func (n *DropFunctionStatementNode) SetIsIfExists(isIfExists bool)

type DropMaterializedViewStatementNode

type DropMaterializedViewStatementNode struct {
	*DdlStatementBaseNode
}

func (*DropMaterializedViewStatementNode) IsIfExists

func (n *DropMaterializedViewStatementNode) IsIfExists() bool

func (*DropMaterializedViewStatementNode) Name

func (*DropMaterializedViewStatementNode) SetIsIfExists

func (n *DropMaterializedViewStatementNode) SetIsIfExists(isIfExists bool)

type DropMode

type DropMode int
const (
	DropModeUnspecified DropMode = iota
	DropModeRestrict
	DropModeCascade
)

func (DropMode) String

func (m DropMode) String() string

type DropPrimaryKeyActionNode

type DropPrimaryKeyActionNode struct {
	*AlterActionBaseNode
}

func (*DropPrimaryKeyActionNode) IsIfExists

func (n *DropPrimaryKeyActionNode) IsIfExists() bool

func (*DropPrimaryKeyActionNode) SetIsIfExists

func (n *DropPrimaryKeyActionNode) SetIsIfExists(isIfNotExists bool)

type DropPrivilegeRestrictionStatementNode

type DropPrivilegeRestrictionStatementNode struct {
	*DdlStatementBaseNode
}

func (*DropPrivilegeRestrictionStatementNode) IsIfExists

func (*DropPrivilegeRestrictionStatementNode) NamePath

func (*DropPrivilegeRestrictionStatementNode) ObjectType

func (*DropPrivilegeRestrictionStatementNode) Privileges

func (*DropPrivilegeRestrictionStatementNode) SetIsIfExists

func (n *DropPrivilegeRestrictionStatementNode) SetIsIfExists(isIfExists bool)

type DropRowAccessPolicyStatementNode

type DropRowAccessPolicyStatementNode struct {
	*DdlStatementBaseNode
}

func (*DropRowAccessPolicyStatementNode) IsIfExists

func (n *DropRowAccessPolicyStatementNode) IsIfExists() bool

func (*DropRowAccessPolicyStatementNode) Name

func (*DropRowAccessPolicyStatementNode) SetIsIfExists

func (n *DropRowAccessPolicyStatementNode) SetIsIfExists(isIfExists bool)

func (*DropRowAccessPolicyStatementNode) TableName

type DropSearchIndexStatementNode

type DropSearchIndexStatementNode struct {
	*DdlStatementBaseNode
}

func (*DropSearchIndexStatementNode) IsIfExists

func (n *DropSearchIndexStatementNode) IsIfExists() bool

func (*DropSearchIndexStatementNode) Name

func (*DropSearchIndexStatementNode) SetIsIfExists

func (n *DropSearchIndexStatementNode) SetIsIfExists(isIfExists bool)

func (*DropSearchIndexStatementNode) TableName

type DropSnapshotTableStatementNode

type DropSnapshotTableStatementNode struct {
	*DdlStatementBaseNode
}

func (*DropSnapshotTableStatementNode) IsIfExists

func (n *DropSnapshotTableStatementNode) IsIfExists() bool

func (*DropSnapshotTableStatementNode) Name

func (*DropSnapshotTableStatementNode) SetIsIfExists

func (n *DropSnapshotTableStatementNode) SetIsIfExists(isIfExists bool)

type DropStatementNode

type DropStatementNode struct {
	*DdlStatementBaseNode
}

func (*DropStatementNode) DropMode

func (n *DropStatementNode) DropMode() DropMode

func (*DropStatementNode) IsIfExists

func (n *DropStatementNode) IsIfExists() bool

func (*DropStatementNode) Name

func (*DropStatementNode) SchemaObjectKind

func (n *DropStatementNode) SchemaObjectKind() SchemaObjectKind

func (*DropStatementNode) SetDropMode

func (n *DropStatementNode) SetDropMode(mode DropMode)

func (*DropStatementNode) SetIsIfExists

func (n *DropStatementNode) SetIsIfExists(isIfExists bool)

func (*DropStatementNode) SetSchemaObjectKind

func (n *DropStatementNode) SetSchemaObjectKind(kind SchemaObjectKind)

type DropTableFunctionStatementNode

type DropTableFunctionStatementNode struct {
	*DdlStatementBaseNode
}

func (*DropTableFunctionStatementNode) IsIfExists

func (n *DropTableFunctionStatementNode) IsIfExists() bool

func (*DropTableFunctionStatementNode) Name

func (*DropTableFunctionStatementNode) SetIsIfExists

func (n *DropTableFunctionStatementNode) SetIsIfExists(isIfExists bool)

type ElseifClauseListNode

type ElseifClauseListNode struct {
	*BaseNode
}

func (*ElseifClauseListNode) ElseifClauses

func (n *ElseifClauseListNode) ElseifClauses() []*ElseifClauseNode

type ElseifClauseNode

type ElseifClauseNode struct {
	*BaseNode
}

func (*ElseifClauseNode) Body

func (*ElseifClauseNode) Condition

func (n *ElseifClauseNode) Condition() ExpressionNode

func (*ElseifClauseNode) IfStmt

func (n *ElseifClauseNode) IfStmt() *IfStatementNode

type ExceptionHandlerListNode

type ExceptionHandlerListNode struct {
	*BaseNode
}

func (*ExceptionHandlerListNode) ExceptionHandlerList

func (n *ExceptionHandlerListNode) ExceptionHandlerList() []*ExceptionHandlerNode

type ExceptionHandlerNode

type ExceptionHandlerNode struct {
	*BaseNode
}

func (*ExceptionHandlerNode) StatementList

func (n *ExceptionHandlerNode) StatementList() *StatementListNode

type ExecuteImmediateStatementNode

type ExecuteImmediateStatementNode struct {
	*StatementBaseNode
}

func (*ExecuteImmediateStatementNode) IntoClause

func (*ExecuteImmediateStatementNode) SQL

func (*ExecuteImmediateStatementNode) UsingClause

type ExecuteIntoClauseNode

type ExecuteIntoClauseNode struct {
	*BaseNode
}

func (*ExecuteIntoClauseNode) Identifiers

func (n *ExecuteIntoClauseNode) Identifiers() *IdentifierListNode

type ExecuteUsingArgumentNode

type ExecuteUsingArgumentNode struct {
	*BaseNode
}

func (*ExecuteUsingArgumentNode) Alias

func (n *ExecuteUsingArgumentNode) Alias() *AliasNode

func (*ExecuteUsingArgumentNode) Expression

func (n *ExecuteUsingArgumentNode) Expression() ExpressionNode

type ExecuteUsingClauseNode

type ExecuteUsingClauseNode struct {
	*BaseNode
}

func (*ExecuteUsingClauseNode) Arguments

type ExplainStatementNode

type ExplainStatementNode struct {
	*StatementBaseNode
}

func (*ExplainStatementNode) Statement

func (n *ExplainStatementNode) Statement() StatementNode

type ExportDataStatementNode

type ExportDataStatementNode struct {
	*StatementBaseNode
}

func (*ExportDataStatementNode) OptionsList

func (n *ExportDataStatementNode) OptionsList() *OptionsListNode

func (*ExportDataStatementNode) Query

func (n *ExportDataStatementNode) Query() *QueryNode

func (*ExportDataStatementNode) WithConnectionClause

func (n *ExportDataStatementNode) WithConnectionClause() *WithConnectionClauseNode

type ExportModelStatementNode

type ExportModelStatementNode struct {
	*StatementBaseNode
}

func (*ExportModelStatementNode) ModelNamePath

func (n *ExportModelStatementNode) ModelNamePath() *PathExpressionNode

func (*ExportModelStatementNode) OptionsList

func (n *ExportModelStatementNode) OptionsList() *OptionsListNode

func (*ExportModelStatementNode) WithConnectionClause

func (n *ExportModelStatementNode) WithConnectionClause() *WithConnectionClauseNode

type ExpressionBaseNode

type ExpressionBaseNode struct {
	*BaseNode
}

func (*ExpressionBaseNode) IsAllowedInComparison

func (n *ExpressionBaseNode) IsAllowedInComparison() bool

func (*ExpressionBaseNode) Parenthesized

func (n *ExpressionBaseNode) Parenthesized() bool

func (*ExpressionBaseNode) SetParenthesized

func (n *ExpressionBaseNode) SetParenthesized(parenthesized bool)

type ExpressionNode

type ExpressionNode interface {
	Node
}

type ExpressionSubqueryModifier

type ExpressionSubqueryModifier int
const (
	ExpressionSubqueryNone ExpressionSubqueryModifier = iota
	ExpressionSubqueryArray
	ExpressionSubqueryExists
)

func (ExpressionSubqueryModifier) String

type ExpressionSubqueryNode

type ExpressionSubqueryNode struct {
	*ExpressionBaseNode
}

func (*ExpressionSubqueryNode) Hint

func (n *ExpressionSubqueryNode) Hint() *HintNode

func (*ExpressionSubqueryNode) Modifier

func (*ExpressionSubqueryNode) Query

func (n *ExpressionSubqueryNode) Query() *QueryNode

func (*ExpressionSubqueryNode) SetModifier

func (n *ExpressionSubqueryNode) SetModifier(modifier ExpressionSubqueryModifier)

type ExtractExpressionNode

type ExtractExpressionNode struct {
	*ExpressionBaseNode
}

func (*ExtractExpressionNode) LhsExpr

func (*ExtractExpressionNode) RhsExpr

func (*ExtractExpressionNode) TimeZoneExpr

func (n *ExtractExpressionNode) TimeZoneExpr() ExpressionNode

type FilterFieldsArgNode

type FilterFieldsArgNode struct {
	*BaseNode
}

func (*FilterFieldsArgNode) FilterType

func (n *FilterFieldsArgNode) FilterType() FilterType

func (*FilterFieldsArgNode) PathExpression

func (*FilterFieldsArgNode) SQLForOperator

func (n *FilterFieldsArgNode) SQLForOperator() string

func (*FilterFieldsArgNode) SetFilterType

func (n *FilterFieldsArgNode) SetFilterType(typ FilterType)

type FilterType

type FilterType int
const (
	FilterNotSet FilterType = iota
	FilterInclude
	FilterExclude
)

func (FilterType) String

func (t FilterType) String() string

type FilterUsingClauseNode

type FilterUsingClauseNode struct {
	*AlterActionBaseNode
}

func (*FilterUsingClauseNode) HasFilterKeyword

func (n *FilterUsingClauseNode) HasFilterKeyword() bool

func (*FilterUsingClauseNode) Predicate

func (n *FilterUsingClauseNode) Predicate() ExpressionNode

func (*FilterUsingClauseNode) SetHasFilterKeyword

func (n *FilterUsingClauseNode) SetHasFilterKeyword(keyword bool)

type FloatLiteralNode

type FloatLiteralNode struct {
	*LeafBaseNode
}

func (*FloatLiteralNode) SetValue

func (n *FloatLiteralNode) SetValue(v float64)

func (*FloatLiteralNode) Value

func (n *FloatLiteralNode) Value() (float64, error)

type ForInStatementNode

type ForInStatementNode struct {
	*LoopStatementNode
}

func (*ForInStatementNode) Query

func (n *ForInStatementNode) Query() *QueryNode

func (*ForInStatementNode) Variable

func (n *ForInStatementNode) Variable() *IdentifierNode

type ForSystemTimeNode

type ForSystemTimeNode struct {
	*BaseNode
}

func (*ForSystemTimeNode) Expression

func (n *ForSystemTimeNode) Expression() ExpressionNode

type ForeignKeyAction

type ForeignKeyAction int
const (
	ForeignKeyNoAction ForeignKeyAction = iota
	ForeignKeyRestrictAction
	ForeignKeyCascadeAction
	ForeignKeySetNullAction
)

func (ForeignKeyAction) String

func (a ForeignKeyAction) String() string

type ForeignKeyActionsNode

type ForeignKeyActionsNode struct {
	*BaseNode
}

func (*ForeignKeyActionsNode) DeleteAction

func (n *ForeignKeyActionsNode) DeleteAction() ForeignKeyAction

func (*ForeignKeyActionsNode) SetDeleteAction

func (n *ForeignKeyActionsNode) SetDeleteAction(action ForeignKeyAction)

func (*ForeignKeyActionsNode) SetUpdateAction

func (n *ForeignKeyActionsNode) SetUpdateAction(action ForeignKeyAction)

func (*ForeignKeyActionsNode) UpdateAction

func (n *ForeignKeyActionsNode) UpdateAction() ForeignKeyAction

type ForeignKeyColumnAttributeNode

type ForeignKeyColumnAttributeNode struct {
	*ColumnAttributeBaseNode
}

func (*ForeignKeyColumnAttributeNode) ConstraintName

func (n *ForeignKeyColumnAttributeNode) ConstraintName() *IdentifierNode

func (*ForeignKeyColumnAttributeNode) Reference

type ForeignKeyNode

type ForeignKeyNode struct {
	*TableConstraintBaseNode
}

func (*ForeignKeyNode) ColumnList

func (n *ForeignKeyNode) ColumnList() *ColumnListNode

func (*ForeignKeyNode) OptionsList

func (n *ForeignKeyNode) OptionsList() *OptionsListNode

func (*ForeignKeyNode) Reference

func (n *ForeignKeyNode) Reference() *ForeignKeyReferenceNode

type ForeignKeyReferenceMatch

type ForeignKeyReferenceMatch int
const (
	ForeignKeyReferenceSimple ForeignKeyReferenceMatch = iota
	ForeignKeyReferenceFull
	ForeignKeyReferenceNotDistinct
)

func (ForeignKeyReferenceMatch) String

func (m ForeignKeyReferenceMatch) String() string

type ForeignKeyReferenceNode

type ForeignKeyReferenceNode struct {
	*BaseNode
}

func (*ForeignKeyReferenceNode) Actions

func (*ForeignKeyReferenceNode) ColumnList

func (n *ForeignKeyReferenceNode) ColumnList() *ColumnListNode

func (*ForeignKeyReferenceNode) Enforced

func (n *ForeignKeyReferenceNode) Enforced() bool

func (*ForeignKeyReferenceNode) Match

func (*ForeignKeyReferenceNode) SetEnforced

func (n *ForeignKeyReferenceNode) SetEnforced(enforced bool)

func (*ForeignKeyReferenceNode) SetMatch

func (*ForeignKeyReferenceNode) TableName

type FormatClauseNode

type FormatClauseNode struct {
	*BaseNode
}

func (*FormatClauseNode) Format

func (n *FormatClauseNode) Format() ExpressionNode

func (*FormatClauseNode) TimeZoneExpr

func (n *FormatClauseNode) TimeZoneExpr() ExpressionNode

type FromClauseNode

type FromClauseNode struct {
	*BaseNode
}

func (*FromClauseNode) TableExpression

func (n *FromClauseNode) TableExpression() TableExpressionNode

type FunctionCallNode

type FunctionCallNode struct {
	*ExpressionBaseNode
}

func (*FunctionCallNode) Arguments

func (n *FunctionCallNode) Arguments() []ExpressionNode

func (*FunctionCallNode) ClampedBetweenModifier

func (n *FunctionCallNode) ClampedBetweenModifier() *ClampedBetweenModifierNode

func (*FunctionCallNode) Distinct

func (n *FunctionCallNode) Distinct() bool

func (*FunctionCallNode) Function

func (n *FunctionCallNode) Function() *PathExpressionNode

func (*FunctionCallNode) HasModifiers

func (n *FunctionCallNode) HasModifiers() bool

func (*FunctionCallNode) HavingModifier

func (n *FunctionCallNode) HavingModifier() *HavingModifierNode

func (*FunctionCallNode) Hint

func (n *FunctionCallNode) Hint() *HintNode

func (*FunctionCallNode) IsCurrentDateTimeWithoutParentheses

func (n *FunctionCallNode) IsCurrentDateTimeWithoutParentheses() bool

func (*FunctionCallNode) LimitOffset

func (n *FunctionCallNode) LimitOffset() *LimitOffsetNode

func (*FunctionCallNode) NullHandlingModifier

func (n *FunctionCallNode) NullHandlingModifier() NullHandlingModifier

func (*FunctionCallNode) OrderBy

func (n *FunctionCallNode) OrderBy() *OrderByNode

func (*FunctionCallNode) SetDistinct

func (n *FunctionCallNode) SetDistinct(distinct bool)

func (*FunctionCallNode) SetIsCurrentDateTimeWithoutParentheses

func (n *FunctionCallNode) SetIsCurrentDateTimeWithoutParentheses(v bool)

func (*FunctionCallNode) SetNullHandlingModifier

func (n *FunctionCallNode) SetNullHandlingModifier(mod NullHandlingModifier)

func (*FunctionCallNode) WithGroupRows

func (n *FunctionCallNode) WithGroupRows() *WithGroupRowsNode

type FunctionCallWithGroupRowsNode

type FunctionCallWithGroupRowsNode struct {
	*ExpressionBaseNode
}

func (*FunctionCallWithGroupRowsNode) Function

func (*FunctionCallWithGroupRowsNode) Subquery

type FunctionDeclarationNode

type FunctionDeclarationNode struct {
	*BaseNode
}

func (*FunctionDeclarationNode) IsTemplated

func (n *FunctionDeclarationNode) IsTemplated() bool

func (*FunctionDeclarationNode) Name

func (*FunctionDeclarationNode) Parameters

type FunctionParameterNode

type FunctionParameterNode struct {
	*BaseNode
}

func (*FunctionParameterNode) Alias

func (n *FunctionParameterNode) Alias() *AliasNode

func (*FunctionParameterNode) DefaultValue

func (n *FunctionParameterNode) DefaultValue() ExpressionNode

func (*FunctionParameterNode) IsNotAggregate

func (n *FunctionParameterNode) IsNotAggregate() bool

func (*FunctionParameterNode) IsTableParameter

func (n *FunctionParameterNode) IsTableParameter() bool

func (*FunctionParameterNode) IsTemplated

func (n *FunctionParameterNode) IsTemplated() bool

func (*FunctionParameterNode) Name

func (*FunctionParameterNode) ProcedureParameterMode

func (n *FunctionParameterNode) ProcedureParameterMode() ProcedureParameterMode

func (*FunctionParameterNode) SetIsNotAggregate

func (n *FunctionParameterNode) SetIsNotAggregate(isNotAggregate bool)

func (*FunctionParameterNode) SetProcedureParameterMode

func (n *FunctionParameterNode) SetProcedureParameterMode(mode ProcedureParameterMode)

func (*FunctionParameterNode) TVFSchema

func (n *FunctionParameterNode) TVFSchema() *TVFSchemaNode

func (*FunctionParameterNode) TemplatedParameterType

func (n *FunctionParameterNode) TemplatedParameterType() *TemplatedParameterTypeNode

func (*FunctionParameterNode) Type

func (n *FunctionParameterNode) Type() TypeNode

type FunctionParametersNode

type FunctionParametersNode struct {
	*BaseNode
}

func (*FunctionParametersNode) ParameterEntries

func (n *FunctionParametersNode) ParameterEntries() []*FunctionParameterNode

type GeneralizedPathExpressionBaseNode

type GeneralizedPathExpressionBaseNode struct {
	*ExpressionBaseNode
}

type GeneralizedPathExpressionNode

type GeneralizedPathExpressionNode interface {
	ExpressionNode
}

type GeneratedColumnInfoNode

type GeneratedColumnInfoNode struct {
	*BaseNode
}

func (*GeneratedColumnInfoNode) Expression

func (n *GeneratedColumnInfoNode) Expression() ExpressionNode

func (*GeneratedColumnInfoNode) SetStoredMode

func (*GeneratedColumnInfoNode) SqlForStoredMode

func (n *GeneratedColumnInfoNode) SqlForStoredMode() string

func (*GeneratedColumnInfoNode) StoredMode

type GeneratedColumnInfoStoredMode

type GeneratedColumnInfoStoredMode int
const (
	GeneratedColumnInfoNonStored GeneratedColumnInfoStoredMode = iota
	GeneratedColumnInfoStored
	GeneratedColumnInfoStoredVolatile
)

func (GeneratedColumnInfoStoredMode) String

type GrantStatementNode

type GrantStatementNode struct {
	*StatementBaseNode
}

func (*GrantStatementNode) GranteeList

func (n *GrantStatementNode) GranteeList() *GranteeListNode

func (*GrantStatementNode) Privileges

func (n *GrantStatementNode) Privileges() *PrivilegesNode

func (*GrantStatementNode) TargetPath

func (n *GrantStatementNode) TargetPath() *PathExpressionNode

func (*GrantStatementNode) TargetType

func (n *GrantStatementNode) TargetType() *IdentifierNode

type GrantToClauseNode

type GrantToClauseNode struct {
	*AlterActionBaseNode
}

func (*GrantToClauseNode) GranteeList

func (n *GrantToClauseNode) GranteeList() *GranteeListNode

func (*GrantToClauseNode) HasGrantKeywordAndParens

func (n *GrantToClauseNode) HasGrantKeywordAndParens() bool

func (*GrantToClauseNode) SetHasGrantKeywordAndParens

func (n *GrantToClauseNode) SetHasGrantKeywordAndParens(v bool)

type GranteeListNode

type GranteeListNode struct {
	*BaseNode
}

func (*GranteeListNode) GranteeList

func (n *GranteeListNode) GranteeList() []ExpressionNode

type GroupByNode

type GroupByNode struct {
	*BaseNode
}

func (*GroupByNode) GroupingItems

func (n *GroupByNode) GroupingItems() []*GroupingItemNode

func (*GroupByNode) Hint

func (n *GroupByNode) Hint() *HintNode

type GroupingItemNode

type GroupingItemNode struct {
	*BaseNode
}

func (*GroupingItemNode) Expression

func (n *GroupingItemNode) Expression() ExpressionNode

func (*GroupingItemNode) Rollup

func (n *GroupingItemNode) Rollup() *RollupNode

type HavingModifierKind

type HavingModifierKind int
const (
	HavingModifierNotSet HavingModifierKind = iota
	HavingModifierMin
	HavingModifierMax
)

type HavingModifierNode

type HavingModifierNode struct {
	*BaseNode
}

func (*HavingModifierNode) Expr

func (*HavingModifierNode) ModifierKind

func (n *HavingModifierNode) ModifierKind() HavingModifierKind

func (*HavingModifierNode) SetModifierKind

func (n *HavingModifierNode) SetModifierKind(kind HavingModifierKind)

type HavingNode

type HavingNode struct {
	*BaseNode
}

func (*HavingNode) Expression

func (n *HavingNode) Expression() ExpressionNode

type HiddenColumnAttributeNode

type HiddenColumnAttributeNode struct {
	*ColumnAttributeBaseNode
}

type HintEntryNode

type HintEntryNode struct {
	*BaseNode
}

func (*HintEntryNode) Name

func (n *HintEntryNode) Name() *IdentifierNode

func (*HintEntryNode) Qualifier

func (n *HintEntryNode) Qualifier() *IdentifierNode

func (*HintEntryNode) Value

func (n *HintEntryNode) Value() ExpressionNode

type HintNode

type HintNode struct {
	*BaseNode
}

func (*HintNode) HintEntries

func (n *HintNode) HintEntries() []*HintEntryNode

func (*HintNode) NumShardsHint

func (n *HintNode) NumShardsHint() *IntLiteralNode

type HintedStatementNode

type HintedStatementNode struct {
	*StatementBaseNode
}

func (*HintedStatementNode) Hint

func (n *HintedStatementNode) Hint() *HintNode

func (*HintedStatementNode) Statement

func (n *HintedStatementNode) Statement() StatementNode

type IdentifierListNode

type IdentifierListNode struct {
	*BaseNode
}

func (*IdentifierListNode) IdentifierList

func (n *IdentifierListNode) IdentifierList() []*IdentifierNode

type IdentifierNode

type IdentifierNode struct {
	*ExpressionBaseNode
}

func (*IdentifierNode) Name

func (n *IdentifierNode) Name() string

func (*IdentifierNode) SetName

func (n *IdentifierNode) SetName(name string)

type IfStatementNode

type IfStatementNode struct {
	*ScriptStatementNode
}

func (*IfStatementNode) Condition

func (n *IfStatementNode) Condition() ExpressionNode

func (*IfStatementNode) ElseList

func (n *IfStatementNode) ElseList() *StatementListNode

func (*IfStatementNode) ElseifClauses

func (n *IfStatementNode) ElseifClauses() *ElseifClauseListNode

func (*IfStatementNode) ThenList

func (n *IfStatementNode) ThenList() *StatementListNode

type ImportStatementKind

type ImportStatementKind int
const (
	ImportModule ImportStatementKind = iota
	ImportProto
)

type ImportStatementNode

type ImportStatementNode struct {
	*StatementBaseNode
}

func (*ImportStatementNode) Alias

func (n *ImportStatementNode) Alias() *AliasNode

func (*ImportStatementNode) ImportKind

func (n *ImportStatementNode) ImportKind() ImportStatementKind

func (*ImportStatementNode) IntoAlias

func (n *ImportStatementNode) IntoAlias() *IntoAliasNode

func (*ImportStatementNode) Name

func (*ImportStatementNode) OptionsList

func (n *ImportStatementNode) OptionsList() *OptionsListNode

func (*ImportStatementNode) SetImportKind

func (n *ImportStatementNode) SetImportKind(kind ImportStatementKind)

func (*ImportStatementNode) StringValue

func (n *ImportStatementNode) StringValue() *StringLiteralNode

type InExpressionNode

type InExpressionNode struct {
	*ExpressionBaseNode
}

func (*InExpressionNode) Hint

func (n *InExpressionNode) Hint() *HintNode

func (*InExpressionNode) InList

func (n *InExpressionNode) InList() *InListNode

func (*InExpressionNode) IsNot

func (n *InExpressionNode) IsNot() bool

func (*InExpressionNode) Lhs

func (*InExpressionNode) Query

func (n *InExpressionNode) Query() *QueryNode

func (*InExpressionNode) SetIsNot

func (n *InExpressionNode) SetIsNot(isNot bool)

func (*InExpressionNode) UnnestExpr

func (n *InExpressionNode) UnnestExpr() *UnnestExpressionNode

type InListNode

type InListNode struct {
	*BaseNode
}

func (*InListNode) List

func (n *InListNode) List() []ExpressionNode

type IndexAllColumnsNode

type IndexAllColumnsNode struct {
	*LeafBaseNode
}

type IndexItemListNode

type IndexItemListNode struct {
	*BaseNode
}

func (*IndexItemListNode) OrderingExpressions

func (n *IndexItemListNode) OrderingExpressions() []*OrderingExpressionNode

type IndexStoringExpressionListNode

type IndexStoringExpressionListNode struct {
	*BaseNode
}

func (*IndexStoringExpressionListNode) Expressions

type IndexUnnestExpressionListNode

type IndexUnnestExpressionListNode struct {
	*BaseNode
}

func (*IndexUnnestExpressionListNode) UnnestExpressions

type InferredTypeColumnSchemaNode

type InferredTypeColumnSchemaNode struct {
	*ColumnSchemaNode
}

type InsertMode

type InsertMode int
const (
	InsertDefaultMode InsertMode = iota
	InsertReplaceMode
	InsertUpdateMode
	InsertIgnoreMode
)

func (InsertMode) String

func (m InsertMode) String() string

type InsertStatementNode

type InsertStatementNode struct {
	*StatementBaseNode
}

func (*InsertStatementNode) AssertRowsModified

func (n *InsertStatementNode) AssertRowsModified() *AssertRowsModifiedNode

func (*InsertStatementNode) ColumnList

func (n *InsertStatementNode) ColumnList() *ColumnListNode

func (*InsertStatementNode) InsertMode

func (n *InsertStatementNode) InsertMode() InsertMode

func (*InsertStatementNode) ParseProgress

func (n *InsertStatementNode) ParseProgress() ParseProgress

func (*InsertStatementNode) Query

func (n *InsertStatementNode) Query() *QueryNode

func (*InsertStatementNode) Returning

func (n *InsertStatementNode) Returning() *ReturningClauseNode

func (*InsertStatementNode) Rows

func (*InsertStatementNode) SQLForInsertMode

func (n *InsertStatementNode) SQLForInsertMode() string

func (*InsertStatementNode) SetInsertMode

func (n *InsertStatementNode) SetInsertMode(mode InsertMode)

func (*InsertStatementNode) SetParseProgress

func (n *InsertStatementNode) SetParseProgress(progress ParseProgress)

func (*InsertStatementNode) TargetPath

type InsertValuesRowListNode

type InsertValuesRowListNode struct {
	*BaseNode
}

func (*InsertValuesRowListNode) Rows

type InsertValuesRowNode

type InsertValuesRowNode struct {
	*BaseNode
}

func (*InsertValuesRowNode) Values

func (n *InsertValuesRowNode) Values() []ExpressionNode

type InsertionMode

type InsertionMode int
const (
	InsertionModeNotSet InsertionMode = iota
	InsertionModeAppend
	InsertionModeOverwrite
)

func (InsertionMode) String

func (m InsertionMode) String() string

type IntLiteralNode

type IntLiteralNode struct {
	*LeafBaseNode
}

func (*IntLiteralNode) IsHex

func (n *IntLiteralNode) IsHex() bool

func (*IntLiteralNode) SetValue

func (n *IntLiteralNode) SetValue(v int64)

func (*IntLiteralNode) Value

func (n *IntLiteralNode) Value() (int64, error)

type IntervalExprNode

type IntervalExprNode struct {
	*ExpressionBaseNode
}

func (*IntervalExprNode) DatePartName

func (n *IntervalExprNode) DatePartName() *IdentifierNode

func (*IntervalExprNode) DatePartNameTo

func (n *IntervalExprNode) DatePartNameTo() *IdentifierNode

func (*IntervalExprNode) InternalValue

func (n *IntervalExprNode) InternalValue() ExpressionNode

type IntoAliasNode

type IntoAliasNode struct {
	*BaseNode
}

func (*IntoAliasNode) Identifier

func (n *IntoAliasNode) Identifier() *IdentifierNode

func (*IntoAliasNode) Name

func (n *IntoAliasNode) Name() string

type JSONLiteralNode

type JSONLiteralNode struct {
	*LeafBaseNode
}

func (*JSONLiteralNode) SetValue

func (n *JSONLiteralNode) SetValue(v string)

func (*JSONLiteralNode) Value

func (n *JSONLiteralNode) Value() string

type JoinHint

type JoinHint int
const (
	NoJoinHint JoinHint = iota
	HashJoinHint
	LookupJoinHint
)

func (JoinHint) String

func (h JoinHint) String() string

type JoinNode

type JoinNode struct {
	*TableExpressionBaseNode
}

func (*JoinNode) ContainsCommaJoin

func (n *JoinNode) ContainsCommaJoin() bool

func (*JoinNode) Hint

func (n *JoinNode) Hint() *HintNode

func (*JoinNode) JoinHint

func (n *JoinNode) JoinHint() JoinHint

func (*JoinNode) JoinType

func (n *JoinNode) JoinType() JoinType

func (*JoinNode) Lhs

func (n *JoinNode) Lhs() TableExpressionNode

func (*JoinNode) Natural

func (n *JoinNode) Natural() bool

func (*JoinNode) OnClause

func (n *JoinNode) OnClause() *OnClauseNode

func (*JoinNode) ParseError

func (n *JoinNode) ParseError() *JoinParseError

func (*JoinNode) Rhs

func (n *JoinNode) Rhs() TableExpressionNode

func (*JoinNode) SQLForJoinHint

func (n *JoinNode) SQLForJoinHint() string

func (*JoinNode) SQLForJoinType

func (n *JoinNode) SQLForJoinType() string

func (*JoinNode) SetContainsCommaJoin

func (n *JoinNode) SetContainsCommaJoin(commaJoin bool)

func (*JoinNode) SetJoinHint

func (n *JoinNode) SetJoinHint(hint JoinHint)

func (*JoinNode) SetJoinType

func (n *JoinNode) SetJoinType(typ JoinType)

func (*JoinNode) SetNatural

func (n *JoinNode) SetNatural(natural bool)

func (*JoinNode) SetTransformationNeeded

func (n *JoinNode) SetTransformationNeeded(needed bool)

func (*JoinNode) SetUnmatchedJoinCount

func (n *JoinNode) SetUnmatchedJoinCount(count int)

func (*JoinNode) TransformationNeeded

func (n *JoinNode) TransformationNeeded() bool

func (*JoinNode) UnmatchedJoinCount

func (n *JoinNode) UnmatchedJoinCount() int

func (*JoinNode) UsingClause

func (n *JoinNode) UsingClause() *UsingClauseNode

type JoinParseError

type JoinParseError struct {
	// contains filtered or unexported fields
}

func (*JoinParseError) Error

func (e *JoinParseError) Error() string

func (*JoinParseError) ErrorNode

func (e *JoinParseError) ErrorNode() Node

func (*JoinParseError) Message

func (e *JoinParseError) Message() string

type JoinType

type JoinType int
const (
	DefaultJoinType JoinType = iota
	CommaJoinType
	CrossJoinType
	FullJoinType
	InnerJoinType
	LeftJoinType
	RightJoinType
)

func (JoinType) String

func (t JoinType) String() string

type Kind

type Kind int
const (
	Unknown Kind = -1 + iota
	Fake
	AbortBatchStatement
	AddColumnAction
	AddConstraintAction
	AddToRestricteeListClause
	FunctionCallWithGroupRows
	Alias
	AlterActionList
	AlterAllRowAccessPoliciesStatement
	AlterColumnOptionsAction
	AlterColumnDropNotNullAction
	AlterColumnTypeAction
	AlterColumnSetDefaultAction
	AlterColumnDropDefaultAction
	AlterConstraintEnforcementAction
	AlterConstraintSetOptionsAction
	AlterDatabaseStatement
	AlterEntityStatement
	AlterMaterializedViewStatement
	AlterPrivilegeRestrictionStatement
	AlterRowAccessPolicyStatement
	AlterSchemaStatement
	AlterTableStatement
	AlterViewStatement
	AnalyticFunctionCall
	AnalyzeStatement
	AndExpr
	AnySomeAllOp
	ArrayColumnSchema
	ArrayConstructor
	ArrayElement
	ArrayType
	AssertRowsModified
	AssertStatement
	AssignmentFromStruct
	BeginStatement
	BetweenExpression
	AuxLoadDataFromFilesOptionsList
	AuxLoadDataStatement
	BignumericLiteral
	BinaryExpression
	BitwiseShiftExpression
	BeginEndBlock
	BooleanLiteral
	BreakStatement
	BytesLiteral
	CallStatement
	CaseStatement
	CaseNoValueExpression
	CaseValueExpression
	CastExpression
	CheckConstraint
	ClampedBetweenModifier
	CloneDataSource
	CloneDataSourceList
	CloneDataStatement
	ClusterBy
	Collate
	ColumnAttributeList
	ColumnDefinition
	ColumnList
	ColumnPosition
	CommitStatement
	ConnectionClause
	ContinueStatement
	CopyDataSource
	CreateConstantStatement
	CreateDatabaseStatement
	CreateExternalTableStatement
	CreateFunctionStatement
	CreateIndexStatement
	CreateModelStatement
	CreateProcedureStatement
	CreatePrivilegeRestrictionStatement
	CreateRowAccessPolicyStatement
	CreateSchemaStatement
	CreateSnapshotTableStatement
	CreateTableFunctionStatement
	CreateTableStatement
	CreateEntityStatement
	CreateViewStatement
	CreateMaterializedViewStatement
	DateOrTimeLiteral
	DefaultLiteral
	DefineTableStatement
	DeleteStatement
	DescribeStatement
	DescriptorColumn
	DescriptorColumnList
	Descriptor
	DotGeneralizedField
	DotIdentifier
	DotStar
	DotStarWithModifiers
	DropAllRowAccessPoliciesStatement
	DropColumnAction
	DropConstraintAction
	DropEntityStatement
	DropFunctionStatement
	DropPrimaryKeyAction
	DropPrivilegeRestrictionStatement
	DropRowAccessPolicyStatement
	DropSearchIndexStatement
	DropStatement
	DropTableFunctionStatement
	DropMaterializedViewStatement
	DropSnapshotTableStatement
	ElseifClause
	ElseifClauseList
	ExceptionHandler
	ExceptionHandlerList
	ExecuteImmediateStatement
	ExecuteIntoClause
	ExecuteUsingArgument
	ExecuteUsingClause
	ExplainStatement
	ExportDataStatement
	ExportModelStatement
	ExpressionSubquery
	ExtractExpression
	FilterFieldsArg
	FilterFieldsExpression
	FilterUsingClause
	FloatLiteral
	ForInStatement
	ForeignKey
	ForeignKeyActions
	ForeignKeyColumnAttribute
	ForeignKeyReference
	FormatClause
	ForSystemTime
	FromClause
	FunctionCall
	FunctionDeclaration
	FunctionParameter
	FunctionParameters
	GeneratedColumnInfo
	GranteeList
	GrantStatement
	GrantToClause
	RestrictToClause
	GroupBy
	GroupingItem
	Having
	HavingModifier
	HiddenColumnAttribute
	Hint
	HintedStatement
	HintEntry
	Identifier
	IdentifierList
	IfStatement
	ImportStatement
	InExpression
	InList
	IndexAllColumns
	IndexItemList
	IndexStoringExpressionList
	IndexUnnestExpressionList
	InferredTypeColumnSchema
	InsertStatement
	InsertValuesRow
	InsertValuesRowList
	IntervalExpr
	IntoAlias
	IntLiteral
	Join
	JoinLiteral
	Label
	Lambda
	LikeExpression
	LimitOffset
	MaxLiteral
	MergeAction
	MergeStatement
	MergeWhenClause
	MergeWhenClauseList
	ModelClause
	ModuleStatement
	NamedArgument
	NewConstructor
	NewConstructorArg
	NotNullColumnAttribute
	NullLiteral
	NullOrder
	NumericLiteral
	OnClause
	OnOrUsingClauseList
	OptionsEntry
	OptionsList
	OrderBy
	OrderingExpression
	OrExpr
	ParameterAssignment
	ParameterExpr
	ParenthesizedJoin
	PartitionBy
	PathExpression
	PathExpressionList
	PivotClause
	UnpivotClause
	UnpivotInItemLabel
	UnpivotInItem
	UnpivotInItemList
	PivotExpression
	PivotExpressionList
	PivotValue
	PivotValueList
	PrimaryKey
	PrimaryKeyColumnAttribute
	Privilege
	Privileges
	Qualify
	Query
	QueryStatement
	RaiseStatement
	RemoveFromRestricteeListClause
	RenameColumnAction
	RenameToClause
	RenameStatement
	RepeatStatement
	RepeatableClause
	ReplaceFieldsArg
	ReplaceFieldsExpression
	ReturnStatement
	ReturningClause
	RevokeFromClause
	RevokeStatement
	RollbackStatement
	Rollup
	RunBatchStatement
	SampleClause
	SampleSize
	SampleSuffix
	Script
	Select
	SelectAs
	SelectColumn
	SelectList
	SetOperation
	SetOptionsAction
	SetAsAction
	SetCollateClause
	SetTransactionStatement
	SingleAssignment
	ShowStatement
	SimpleColumnSchema
	SimpleType
	SqlFunctionBody
	Star
	StarExceptList
	StarModifiers
	StarReplaceItem
	StarWithModifiers
	StarBatchStatement
	StatementList
	StringLiteral
	StructColumnField
	StructColumnSchema
	StructConstructorArg
	StructConstructorWithKeyword
	StructConstructorWithParens
	StructField
	StructType
	SystemVariableAssignment
	SystemVariableExpr
	TableAndColumnInfo
	TableAndColumnInfoList
	TableClause
	TableElementList
	TablePathExpression
	TableSubquery
	TemplatedParameterType
	TransactionIsolationLevel
	TransactionModeList
	TransactionReadWriteMode
	TransformClause
	TrucateStatement
	Tvf
	TvfArgument
	TvfSchema
	TvfSchemaColumn
	TypeParameterList
	UnaryExpression
	UnnestExpression
	UnnestExpressionWithOptAliasAndOffset
	UntilClause
	UpdateItem
	UpdateItemList
	UpdateSetValue
	UpdateStatement
	UsingClause
	VariableDeclaration
	WhenThenClause
	WhenThenClauseList
	WhereClause
	WhileStatement
	WindowClause
	WindowDefinition
	WindowFrame
	WindowFrameExpr
	WindowSpecification
	WithClause
	WithClauseEntry
	WithConnectionClause
	WithGroupRows
	WithOffset
	WithPartitionColumnsClause
	WithWeight
)

func (Kind) String

func (k Kind) String() string

type LabelNode

type LabelNode struct {
	*BaseNode
}

func (*LabelNode) Name

func (n *LabelNode) Name() *IdentifierNode

type LambdaNode

type LambdaNode struct {
	*ExpressionBaseNode
}

func (*LambdaNode) ArgumentList

func (n *LambdaNode) ArgumentList() ExpressionNode

func (*LambdaNode) Body

func (n *LambdaNode) Body() ExpressionNode

type LeafBaseNode

type LeafBaseNode struct {
	*ExpressionBaseNode
}

func (*LeafBaseNode) Image

func (n *LeafBaseNode) Image() string

func (*LeafBaseNode) SetImage

func (n *LeafBaseNode) SetImage(image string)

type LeafNode

type LeafNode interface {
	ExpressionNode
}

type LikeExpressionNode

type LikeExpressionNode struct {
	*ExpressionBaseNode
}

func (*LikeExpressionNode) Hint

func (n *LikeExpressionNode) Hint() *HintNode

func (*LikeExpressionNode) InList

func (n *LikeExpressionNode) InList() *InListNode

func (*LikeExpressionNode) IsNot

func (n *LikeExpressionNode) IsNot() bool

func (*LikeExpressionNode) Lhs

func (*LikeExpressionNode) Op

func (*LikeExpressionNode) Query

func (n *LikeExpressionNode) Query() *QueryNode

func (*LikeExpressionNode) SetIsNot

func (n *LikeExpressionNode) SetIsNot(isNot bool)

func (*LikeExpressionNode) UnnestExpr

func (n *LikeExpressionNode) UnnestExpr() *UnnestExpressionNode

type LimitOffsetNode

type LimitOffsetNode struct {
	*BaseNode
}

func (*LimitOffsetNode) Limit

func (n *LimitOffsetNode) Limit() ExpressionNode

func (*LimitOffsetNode) Offset

func (n *LimitOffsetNode) Offset() ExpressionNode

type LoopStatementNode

type LoopStatementNode struct {
	*ScriptStatementNode
}

func (*LoopStatementNode) Body

func (*LoopStatementNode) IsLoopStatement

func (n *LoopStatementNode) IsLoopStatement() bool

func (*LoopStatementNode) Label

func (n *LoopStatementNode) Label() *LabelNode

type MaxLiteralNode

type MaxLiteralNode struct {
	*LeafBaseNode
}

func (*MaxLiteralNode) SetValue

func (n *MaxLiteralNode) SetValue(v string)

func (*MaxLiteralNode) Value

func (n *MaxLiteralNode) Value() string

type MergeActionNode

type MergeActionNode struct {
	*BaseNode
}

func (*MergeActionNode) ActionType

func (n *MergeActionNode) ActionType() MergeActionType

func (*MergeActionNode) InsertColumnList

func (n *MergeActionNode) InsertColumnList() *ColumnListNode

func (*MergeActionNode) InsertRow

func (n *MergeActionNode) InsertRow() *InsertValuesRowNode

func (*MergeActionNode) SetActionType

func (n *MergeActionNode) SetActionType(typ MergeActionType)

func (*MergeActionNode) UpdateItemList

func (n *MergeActionNode) UpdateItemList() *UpdateItemListNode

type MergeActionType

type MergeActionType int
const (
	MergeActionNotSet MergeActionType = iota
	MergeActionInsert
	MergeActionUpdate
	MergeActionDelete
)

type MergeMatchType

type MergeMatchType int
const (
	MergeMatchNotSet MergeMatchType = iota
	MergeMatched
	MergeNotMatchedBySource
	MergeNotMatchedByTarget
)

type MergeStatementNode

type MergeStatementNode struct {
	*StatementBaseNode
}

func (*MergeStatementNode) Alias

func (n *MergeStatementNode) Alias() *AliasNode

func (*MergeStatementNode) MergeCondition

func (n *MergeStatementNode) MergeCondition() ExpressionNode

func (*MergeStatementNode) TableExpression

func (n *MergeStatementNode) TableExpression() TableExpressionNode

func (*MergeStatementNode) TargetPath

func (n *MergeStatementNode) TargetPath() *PathExpressionNode

func (*MergeStatementNode) WhenClauses

func (n *MergeStatementNode) WhenClauses() *MergeWhenClauseListNode

type MergeWhenClauseListNode

type MergeWhenClauseListNode struct {
	*BaseNode
}

func (*MergeWhenClauseListNode) ClauseList

func (n *MergeWhenClauseListNode) ClauseList() []*MergeWhenClauseNode

type MergeWhenClauseNode

type MergeWhenClauseNode struct {
	*BaseNode
}

func (*MergeWhenClauseNode) Action

func (n *MergeWhenClauseNode) Action() *MergeActionNode

func (*MergeWhenClauseNode) MatchType

func (n *MergeWhenClauseNode) MatchType() MergeMatchType

func (*MergeWhenClauseNode) SQLForMatchType

func (n *MergeWhenClauseNode) SQLForMatchType() string

func (*MergeWhenClauseNode) SearchCondition

func (n *MergeWhenClauseNode) SearchCondition() ExpressionNode

func (*MergeWhenClauseNode) SetMatchType

func (n *MergeWhenClauseNode) SetMatchType(matchType MergeMatchType)

type ModelClauseNode

type ModelClauseNode struct {
	*BaseNode
}

func (*ModelClauseNode) ModelPath

func (n *ModelClauseNode) ModelPath() *PathExpressionNode

type ModuleStatementNode

type ModuleStatementNode struct {
	*StatementBaseNode
}

func (*ModuleStatementNode) Name

func (*ModuleStatementNode) OptionsList

func (n *ModuleStatementNode) OptionsList() *OptionsListNode

type NamedArgumentNode

type NamedArgumentNode struct {
	*ExpressionBaseNode
}

func (*NamedArgumentNode) Expr

func (*NamedArgumentNode) Name

func (n *NamedArgumentNode) Name() *IdentifierNode

type NewConstructorArgNode

type NewConstructorArgNode struct {
	*BaseNode
}

func (*NewConstructorArgNode) Expression

func (n *NewConstructorArgNode) Expression() ExpressionNode

func (*NewConstructorArgNode) OptionalIdentifier

func (n *NewConstructorArgNode) OptionalIdentifier() *IdentifierNode

func (*NewConstructorArgNode) OptionalPathExpression

func (n *NewConstructorArgNode) OptionalPathExpression() *PathExpressionNode

type NewConstructorNode

type NewConstructorNode struct {
	*ExpressionBaseNode
}

func (*NewConstructorNode) Arguments

func (n *NewConstructorNode) Arguments() []*NewConstructorArgNode

func (*NewConstructorNode) TypeName

func (n *NewConstructorNode) TypeName() *SimpleTypeNode

type Node

type Node interface {
	ID() int
	Kind() Kind
	NumChildren() int
	SingleNodeDebugString() string
	Child(int) Node
	MutableChild(int) Node
	SetParent(Node)
	Parent() Node
	AddChild(Node)
	AddChildFront(Node)
	FindChildIndex(Kind) int
	DebugString(int) string
	MoveStartLocation(int)
	MoveStartLocationBack(int)
	SetStartLocationToEndLocation()
	MoveEndLocationBack(int)
	SetStartLocation(*types.ParseLocationPoint)
	SetEndLocation(*types.ParseLocationPoint)
	IsTableExpression() bool
	IsQueryExpression() bool
	IsExpression() bool
	IsType() bool
	IsLeaf() bool
	IsStatement() bool
	IsScriptStatement() bool
	IsLoopStatement() bool
	IsSqlStatement() bool
	IsDdlStatement() bool
	IsCreateStatement() bool
	IsAlterStatement() bool
	ParseLocationRange() *types.ParseLocationRange
	LocationString() string
	// contains filtered or unexported methods
}

type NotNullColumnAttributeNode

type NotNullColumnAttributeNode struct {
	*ColumnAttributeBaseNode
}

type NullHandlingModifier

type NullHandlingModifier int
const (
	DefaultNullHandling NullHandlingModifier = iota
	IgnoreNulls
	RespectNulls
)

func (NullHandlingModifier) String

func (m NullHandlingModifier) String() string

type NullLiteralNode

type NullLiteralNode struct {
	*LeafBaseNode
}

type NullOrderNode

type NullOrderNode struct {
	*BaseNode
}

func (*NullOrderNode) NullsFirst

func (n *NullOrderNode) NullsFirst() bool

func (*NullOrderNode) SetNullsFirst

func (n *NullOrderNode) SetNullsFirst(nullsFirst bool)

type NumericLiteralNode

type NumericLiteralNode struct {
	*LeafBaseNode
}

func (*NumericLiteralNode) SetValue

func (n *NumericLiteralNode) SetValue(v string)

func (*NumericLiteralNode) Value

func (n *NumericLiteralNode) Value() string

type OnClauseNode

type OnClauseNode struct {
	*BaseNode
}

func (*OnClauseNode) Expression

func (n *OnClauseNode) Expression() ExpressionNode

type OnOrUsingClauseListNode

type OnOrUsingClauseListNode struct {
	*BaseNode
}

func (*OnOrUsingClauseListNode) OnOrUsingClauseList

func (n *OnOrUsingClauseListNode) OnOrUsingClauseList() []Node

type OptionsEntryNode

type OptionsEntryNode struct {
	*BaseNode
}

func (*OptionsEntryNode) Name

func (n *OptionsEntryNode) Name() *IdentifierNode

func (*OptionsEntryNode) Value

func (n *OptionsEntryNode) Value() ExpressionNode

type OptionsListNode

type OptionsListNode struct {
	*BaseNode
}

func (*OptionsListNode) OptionsEntries

func (n *OptionsListNode) OptionsEntries() []*OptionsEntryNode

type OrExprNode

type OrExprNode struct {
	*ExpressionBaseNode
}

func (*OrExprNode) Disjuncts

func (n *OrExprNode) Disjuncts() []ExpressionNode

type OrderByNode

type OrderByNode struct {
	*BaseNode
}

func (*OrderByNode) Hint

func (n *OrderByNode) Hint() *HintNode

func (*OrderByNode) OrderingExpressions

func (n *OrderByNode) OrderingExpressions() []*OrderingExpressionNode

type OrderingExpressionNode

type OrderingExpressionNode struct {
	*BaseNode
}

func (*OrderingExpressionNode) Collate

func (n *OrderingExpressionNode) Collate() *CollateNode

func (*OrderingExpressionNode) Expression

func (n *OrderingExpressionNode) Expression() ExpressionNode

func (*OrderingExpressionNode) NullOrder

func (n *OrderingExpressionNode) NullOrder() *NullOrderNode

func (*OrderingExpressionNode) OrderingSpec

func (n *OrderingExpressionNode) OrderingSpec() OrderingSpec

func (*OrderingExpressionNode) SetOrderingSpec

func (n *OrderingExpressionNode) SetOrderingSpec(spec OrderingSpec)

type OrderingSpec

type OrderingSpec int
const (
	NotSetSpec OrderingSpec = iota
	AscSpec
	DescSpec
	UnspecifiedSpec
)

func (OrderingSpec) String

func (s OrderingSpec) String() string

type ParameterAssignmentNode

type ParameterAssignmentNode struct {
	*StatementBaseNode
}

func (*ParameterAssignmentNode) Expression

func (n *ParameterAssignmentNode) Expression() ExpressionNode

func (*ParameterAssignmentNode) Parameter

type ParameterExprBaseNode

type ParameterExprBaseNode struct {
	*ExpressionBaseNode
}

type ParameterExprNode

type ParameterExprNode struct {
	*ParameterExprBaseNode
}

func (*ParameterExprNode) Name

func (n *ParameterExprNode) Name() *IdentifierNode

func (*ParameterExprNode) Position

func (n *ParameterExprNode) Position() int

func (*ParameterExprNode) SetPosition

func (n *ParameterExprNode) SetPosition(pos int)

type ParenthesizedJoinNode

type ParenthesizedJoinNode struct {
	*TableExpressionBaseNode
}

func (*ParenthesizedJoinNode) Join

func (n *ParenthesizedJoinNode) Join() *JoinNode

func (*ParenthesizedJoinNode) SampleClause

func (n *ParenthesizedJoinNode) SampleClause() *SampleClauseNode

type ParseProgress

type ParseProgress int
const (
	ParseProgressInitial ParseProgress = iota
	ParseProgressSeenOrIgnoreReplaceUpdate
	ParseProgressSeenTargetPath
	ParseProgressSeenColumnList
	ParseProgressSeenValuesList
)

type PartitionByNode

type PartitionByNode struct {
	*BaseNode
}

func (*PartitionByNode) Hint

func (n *PartitionByNode) Hint() *HintNode

func (*PartitionByNode) PartitioningExpressions

func (n *PartitionByNode) PartitioningExpressions() []ExpressionNode

type PathExpressionListNode

type PathExpressionListNode struct {
	*BaseNode
}

func (*PathExpressionListNode) PathExpressionList

func (n *PathExpressionListNode) PathExpressionList() []*PathExpressionNode

type PathExpressionNode

type PathExpressionNode struct {
	*GeneralizedPathExpressionBaseNode
}

PathExpressionNode is used for dotted identifier paths only, not dotting into arbitrary expressions (see DotIdentifierNode).

func (*PathExpressionNode) Names

func (n *PathExpressionNode) Names() []*IdentifierNode

func (*PathExpressionNode) ToIdentifierPathString

func (n *PathExpressionNode) ToIdentifierPathString(maxPrefixSize uint32) string

ToIdentifierPath String return this PathExpression as a dotted SQL identifier string, with quoting if necessary. If maxPrefixSize is non-zero, include at most that many identifiers from the prefix of <path>.

type PivotClauseNode

type PivotClauseNode struct {
	*BaseNode
}

func (*PivotClauseNode) ForExpression

func (n *PivotClauseNode) ForExpression() ExpressionNode

func (*PivotClauseNode) OutputAlias

func (n *PivotClauseNode) OutputAlias() *AliasNode

func (*PivotClauseNode) PivotExpressions

func (n *PivotClauseNode) PivotExpressions() *PivotExpressionListNode

func (*PivotClauseNode) PivotValues

func (n *PivotClauseNode) PivotValues() *PivotValueListNode

type PivotExpressionListNode

type PivotExpressionListNode struct {
	*BaseNode
}

func (*PivotExpressionListNode) Expressions

func (n *PivotExpressionListNode) Expressions() []*PivotExpressionNode

type PivotExpressionNode

type PivotExpressionNode struct {
	*BaseNode
}

func (*PivotExpressionNode) Alias

func (n *PivotExpressionNode) Alias() *AliasNode

func (*PivotExpressionNode) Expression

func (n *PivotExpressionNode) Expression() ExpressionNode

type PivotValueListNode

type PivotValueListNode struct {
	*BaseNode
}

func (*PivotValueListNode) Values

func (n *PivotValueListNode) Values() []*PivotValueNode

type PivotValueNode

type PivotValueNode struct {
	*BaseNode
}

func (*PivotValueNode) Alias

func (n *PivotValueNode) Alias() *AliasNode

func (*PivotValueNode) Value

func (n *PivotValueNode) Value() ExpressionNode

type PrimaryKeyColumnAttributeNode

type PrimaryKeyColumnAttributeNode struct {
	*ColumnAttributeBaseNode
}

func (*PrimaryKeyColumnAttributeNode) Enforced

func (n *PrimaryKeyColumnAttributeNode) Enforced() bool

func (*PrimaryKeyColumnAttributeNode) SetEnforced

func (n *PrimaryKeyColumnAttributeNode) SetEnforced(enforced bool)

type PrimaryKeyNode

type PrimaryKeyNode struct {
	*TableConstraintBaseNode
}

func (*PrimaryKeyNode) ColumnList

func (n *PrimaryKeyNode) ColumnList() *ColumnListNode

func (*PrimaryKeyNode) Enforced

func (n *PrimaryKeyNode) Enforced() bool

func (*PrimaryKeyNode) OptionsList

func (n *PrimaryKeyNode) OptionsList() *OptionsListNode

func (*PrimaryKeyNode) SetEnforced

func (n *PrimaryKeyNode) SetEnforced(enforced bool)

type PrivilegeNode

type PrivilegeNode struct {
	*BaseNode
}

func (*PrivilegeNode) Paths

func (*PrivilegeNode) PrivilegeAction

func (n *PrivilegeNode) PrivilegeAction() *IdentifierNode

type PrivilegesNode

type PrivilegesNode struct {
	*BaseNode
}

func (*PrivilegesNode) IsAllPrivileges

func (n *PrivilegesNode) IsAllPrivileges() bool

func (*PrivilegesNode) Privileges

func (n *PrivilegesNode) Privileges() []*PrivilegeNode

type ProcedureParameterMode

type ProcedureParameterMode int
const (
	NotSetProcedureParameter ProcedureParameterMode = iota
	InProcedureParameter
	OutProcedureParameter
	InOutProcedureParameter
)

func (ProcedureParameterMode) String

func (m ProcedureParameterMode) String() string

type QualifyNode

type QualifyNode struct {
	*BaseNode
}

func (*QualifyNode) Expression

func (n *QualifyNode) Expression() ExpressionNode

type QueryExpressionBaseNode

type QueryExpressionBaseNode struct {
	*BaseNode
}

func (*QueryExpressionBaseNode) Parenthesized

func (n *QueryExpressionBaseNode) Parenthesized() bool

func (*QueryExpressionBaseNode) SetParenthesized

func (n *QueryExpressionBaseNode) SetParenthesized(parenthesized bool)

type QueryExpressionNode

type QueryExpressionNode interface {
	Node
	SetParenthesized(bool)
	Parenthesized() bool
}

type QueryNode

type QueryNode struct {
	*QueryExpressionBaseNode
}

func (*QueryNode) IsNested

func (n *QueryNode) IsNested() bool

func (*QueryNode) IsPivotInput

func (n *QueryNode) IsPivotInput() bool

func (*QueryNode) LimitOffset

func (n *QueryNode) LimitOffset() *LimitOffsetNode

func (*QueryNode) OrderBy

func (n *QueryNode) OrderBy() *OrderByNode

func (*QueryNode) QueryExpr

func (n *QueryNode) QueryExpr() QueryExpressionNode

func (*QueryNode) SetIsNested

func (n *QueryNode) SetIsNested(isNested bool)

func (*QueryNode) SetIsPivotInput

func (n *QueryNode) SetIsPivotInput(isPivotInput bool)

func (*QueryNode) WithClause

func (n *QueryNode) WithClause() *WithClauseNode

type QueryStatementNode

type QueryStatementNode struct {
	*StatementBaseNode
}

func (*QueryStatementNode) Query

func (n *QueryStatementNode) Query() *QueryNode

type RaiseStatementNode

type RaiseStatementNode struct {
	*ScriptStatementNode
}

func (*RaiseStatementNode) IsRethrow

func (n *RaiseStatementNode) IsRethrow() bool

func (*RaiseStatementNode) Message

func (n *RaiseStatementNode) Message() ExpressionNode

type RemoveFromRestricteeListClauseNode

type RemoveFromRestricteeListClauseNode struct {
	*AlterActionBaseNode
}

func (*RemoveFromRestricteeListClauseNode) IsIfExists

func (n *RemoveFromRestricteeListClauseNode) IsIfExists() bool

func (*RemoveFromRestricteeListClauseNode) RestricteeList

func (*RemoveFromRestricteeListClauseNode) SetIsIfExists

func (n *RemoveFromRestricteeListClauseNode) SetIsIfExists(isIfNotExists bool)

type RenameColumnActionNode

type RenameColumnActionNode struct {
	*AlterActionBaseNode
}

func (*RenameColumnActionNode) ColumnName

func (n *RenameColumnActionNode) ColumnName() *IdentifierNode

func (*RenameColumnActionNode) IsIfExists

func (n *RenameColumnActionNode) IsIfExists() bool

func (*RenameColumnActionNode) NewColumnName

func (n *RenameColumnActionNode) NewColumnName() *IdentifierNode

func (*RenameColumnActionNode) SetIsIfExists

func (n *RenameColumnActionNode) SetIsIfExists(isIfNotExists bool)

type RenameStatementNode

type RenameStatementNode struct {
	*StatementBaseNode
}

func (*RenameStatementNode) Identifier

func (n *RenameStatementNode) Identifier() *IdentifierNode

func (*RenameStatementNode) NewName

func (*RenameStatementNode) OldName

type RenameToClauseNode

type RenameToClauseNode struct {
	*AlterActionBaseNode
}

func (*RenameToClauseNode) NewName

func (n *RenameToClauseNode) NewName() *PathExpressionNode

type RepeatStatementNode

type RepeatStatementNode struct {
	*LoopStatementNode
}

func (*RepeatStatementNode) UntilClause

func (n *RepeatStatementNode) UntilClause() *UntilClauseNode

type RepeatableClauseNode

type RepeatableClauseNode struct {
	*BaseNode
}

func (*RepeatableClauseNode) Argument

func (n *RepeatableClauseNode) Argument() ExpressionNode

type ReplaceFieldsArgNode

type ReplaceFieldsArgNode struct {
	*BaseNode
}

func (*ReplaceFieldsArgNode) Expression

func (n *ReplaceFieldsArgNode) Expression() ExpressionNode

func (*ReplaceFieldsArgNode) PathExpression

type ReplaceFieldsExpressionNode

type ReplaceFieldsExpressionNode struct {
	*ExpressionBaseNode
}

func (*ReplaceFieldsExpressionNode) Arguments

func (*ReplaceFieldsExpressionNode) Expr

type RestrictToClauseNode

type RestrictToClauseNode struct {
	*AlterActionBaseNode
}

func (*RestrictToClauseNode) RestricteeList

func (n *RestrictToClauseNode) RestricteeList() *GranteeListNode

type ReturnStatementNode

type ReturnStatementNode struct {
	*ScriptStatementNode
}

type ReturningClauseNode

type ReturningClauseNode struct {
	*BaseNode
}

func (*ReturningClauseNode) ActionAlias

func (n *ReturningClauseNode) ActionAlias() *AliasNode

func (*ReturningClauseNode) SelectList

func (n *ReturningClauseNode) SelectList() *SelectListNode

type RevokeFromClauseNode

type RevokeFromClauseNode struct {
	*AlterActionBaseNode
}

func (*RevokeFromClauseNode) IsRevokeFromAll

func (n *RevokeFromClauseNode) IsRevokeFromAll() bool

func (*RevokeFromClauseNode) RevokeFromList

func (n *RevokeFromClauseNode) RevokeFromList() *GranteeListNode

func (*RevokeFromClauseNode) SetIsRevokeFromAll

func (n *RevokeFromClauseNode) SetIsRevokeFromAll(v bool)

type RevokeStatementNode

type RevokeStatementNode struct {
	*StatementBaseNode
}

func (*RevokeStatementNode) GranteeList

func (n *RevokeStatementNode) GranteeList() *GranteeListNode

func (*RevokeStatementNode) Privileges

func (n *RevokeStatementNode) Privileges() *PrivilegesNode

func (*RevokeStatementNode) TargetPath

func (n *RevokeStatementNode) TargetPath() *PathExpressionNode

func (*RevokeStatementNode) TargetType

func (n *RevokeStatementNode) TargetType() *IdentifierNode

type RollbackStatementNode

type RollbackStatementNode struct {
	*StatementBaseNode
}

type RollupNode

type RollupNode struct {
	*BaseNode
}

func (*RollupNode) Expressions

func (n *RollupNode) Expressions() []ExpressionNode

type RunBatchStatementNode

type RunBatchStatementNode struct {
	*StatementBaseNode
}

type SampleClauseNode

type SampleClauseNode struct {
	*BaseNode
}

func (*SampleClauseNode) SampleMethod

func (n *SampleClauseNode) SampleMethod() *IdentifierNode

func (*SampleClauseNode) SampleSize

func (n *SampleClauseNode) SampleSize() *SampleSizeNode

func (*SampleClauseNode) SampleSuffix

func (n *SampleClauseNode) SampleSuffix() *SampleSuffixNode

type SampleSizeNode

type SampleSizeNode struct {
	*BaseNode
}

func (*SampleSizeNode) PartitionBy

func (n *SampleSizeNode) PartitionBy() *PartitionByNode

func (*SampleSizeNode) SQLForUnit

func (n *SampleSizeNode) SQLForUnit() string

func (*SampleSizeNode) SetUnit

func (n *SampleSizeNode) SetUnit(unit SampleSizeUnit)

func (*SampleSizeNode) Size

func (n *SampleSizeNode) Size() ExpressionNode

func (*SampleSizeNode) Unit

func (n *SampleSizeNode) Unit() SampleSizeUnit

type SampleSizeUnit

type SampleSizeUnit int
const (
	SampleSizeNotSet SampleSizeUnit = iota
	SampleSizeRows
	SampleSizePercent
)

func (SampleSizeUnit) String

func (u SampleSizeUnit) String() string

type SampleSuffixNode

type SampleSuffixNode struct {
	*BaseNode
}

func (*SampleSuffixNode) Repeat

func (*SampleSuffixNode) Weight

func (n *SampleSuffixNode) Weight() *WithWeightNode

type SchemaObjectKind

type SchemaObjectKind int
const (
	UnknownSchemaObject SchemaObjectKind = iota
	InvalidSchemaObjectKind
	AggregateFunctionKind
	ConstantKind
	DatabaseKind
	ExternalTableKind
	FunctionKind
	IndexKind
	MaterializedViewKind
	ModelKind
	ProcedureKind
	SchemaKind
	TableKind
	TableFunctionKind
	ViewKind
	SnapshotTableKind
)

type ScriptBaseNode

type ScriptBaseNode struct {
	*BaseNode
}

func (*ScriptBaseNode) StatementList

func (n *ScriptBaseNode) StatementList() []StatementNode

func (*ScriptBaseNode) StatementListNode

func (n *ScriptBaseNode) StatementListNode() *StatementListNode

type ScriptNode

type ScriptNode interface {
	Node
}

type ScriptStatementNode

type ScriptStatementNode struct {
	*StatementBaseNode
}

type SelectAsNode

type SelectAsNode struct {
	*BaseNode
}

func (*SelectAsNode) AsMode

func (n *SelectAsNode) AsMode() AsMode

func (*SelectAsNode) IsSelectAsStruct

func (n *SelectAsNode) IsSelectAsStruct() bool

func (*SelectAsNode) IsSelectAsValue

func (n *SelectAsNode) IsSelectAsValue() bool

func (*SelectAsNode) SetAsMode

func (n *SelectAsNode) SetAsMode(mode AsMode)

func (*SelectAsNode) TypeName

func (n *SelectAsNode) TypeName() *PathExpressionNode

type SelectColumnNode

type SelectColumnNode struct {
	*BaseNode
}

func (*SelectColumnNode) Alias

func (n *SelectColumnNode) Alias() *AliasNode

func (*SelectColumnNode) Expression

func (n *SelectColumnNode) Expression() ExpressionNode

type SelectListNode

type SelectListNode struct {
	*BaseNode
}

func (*SelectListNode) Columns

func (n *SelectListNode) Columns() []*SelectColumnNode

type SelectNode

type SelectNode struct {
	*QueryExpressionBaseNode
}

func (*SelectNode) AnonymizationOptions

func (n *SelectNode) AnonymizationOptions() *OptionsListNode

func (*SelectNode) Distinct

func (n *SelectNode) Distinct() bool

func (*SelectNode) FromClause

func (n *SelectNode) FromClause() *FromClauseNode

func (*SelectNode) GroupBy

func (n *SelectNode) GroupBy() *GroupByNode

func (*SelectNode) Having

func (n *SelectNode) Having() *HavingNode

func (*SelectNode) Hint

func (n *SelectNode) Hint() *HintNode

func (*SelectNode) Qualify

func (n *SelectNode) Qualify() *QualifyNode

func (*SelectNode) SelectAs

func (n *SelectNode) SelectAs() *SelectAsNode

func (*SelectNode) SelectList

func (n *SelectNode) SelectList() *SelectListNode

func (*SelectNode) SetDistinct

func (n *SelectNode) SetDistinct(distinct bool)

func (*SelectNode) WhereClause

func (n *SelectNode) WhereClause() *WhereClauseNode

func (*SelectNode) WindowClause

func (n *SelectNode) WindowClause() *WindowClauseNode

type SetAsActionNode

type SetAsActionNode struct {
	*AlterActionBaseNode
}

func (*SetAsActionNode) JSONBody

func (n *SetAsActionNode) JSONBody() *JSONLiteralNode

func (*SetAsActionNode) TextBody

func (n *SetAsActionNode) TextBody() *StringLiteralNode

type SetCollateClauseNode

type SetCollateClauseNode struct {
	*AlterActionBaseNode
}

func (*SetCollateClauseNode) Collate

func (n *SetCollateClauseNode) Collate() *CollateNode

type SetOperationNode

type SetOperationNode struct {
	*QueryExpressionBaseNode
}

func (*SetOperationNode) Distinct

func (n *SetOperationNode) Distinct() bool

func (*SetOperationNode) Hint

func (n *SetOperationNode) Hint() *HintNode

func (*SetOperationNode) Inputs

func (n *SetOperationNode) Inputs() []QueryExpressionNode

func (*SetOperationNode) OpType

func (n *SetOperationNode) OpType() SetOperationType

func (*SetOperationNode) SQLForOperation

func (n *SetOperationNode) SQLForOperation() string

func (*SetOperationNode) SetDistinct

func (n *SetOperationNode) SetDistinct(distinct bool)

func (*SetOperationNode) SetOpType

func (n *SetOperationNode) SetOpType(opType SetOperationType)

type SetOperationType

type SetOperationType int
const (
	NotSetOperation SetOperationType = iota
	UnionSetOperation
	ExceptSetOperation
	IntersectSetOperation
)

type SetOptionsActionNode

type SetOptionsActionNode struct {
	*AlterActionBaseNode
}

func (*SetOptionsActionNode) OptionsList

func (n *SetOptionsActionNode) OptionsList() *OptionsListNode

type SetTransactionStatementNode

type SetTransactionStatementNode struct {
	*StatementBaseNode
}

func (*SetTransactionStatementNode) ModeList

type ShowStatementNode

type ShowStatementNode struct {
	*StatementBaseNode
}

func (*ShowStatementNode) Identifier

func (n *ShowStatementNode) Identifier() *IdentifierNode

func (*ShowStatementNode) OptionalLikeString

func (n *ShowStatementNode) OptionalLikeString() *StringLiteralNode

func (*ShowStatementNode) OptionalName

func (n *ShowStatementNode) OptionalName() *PathExpressionNode

type SimpleColumnSchemaNode

type SimpleColumnSchemaNode struct {
	*ColumnSchemaNode
}

func (*SimpleColumnSchemaNode) TypeName

type SimpleTypeNode

type SimpleTypeNode struct {
	*TypeBaseNode
}

func (*SimpleTypeNode) TypeName

func (n *SimpleTypeNode) TypeName() *PathExpressionNode

type SingleAssignmentNode

type SingleAssignmentNode struct {
	*ScriptStatementNode
}

func (*SingleAssignmentNode) Expression

func (n *SingleAssignmentNode) Expression() ExpressionNode

func (*SingleAssignmentNode) Variable

func (n *SingleAssignmentNode) Variable() *IdentifierNode

type SqlFunctionBodyNode

type SqlFunctionBodyNode struct {
	*BaseNode
}

func (*SqlFunctionBodyNode) Expression

func (n *SqlFunctionBodyNode) Expression() ExpressionNode

type SqlSecurity

type SqlSecurity int
const (
	SqlSecurityUnspecified SqlSecurity = iota
	SqlSecurityDefiner
	SqlSecurityInvoker
)

func (SqlSecurity) String

func (s SqlSecurity) String() string

type StarExceptListNode

type StarExceptListNode struct {
	*BaseNode
}

func (*StarExceptListNode) Identifiers

func (n *StarExceptListNode) Identifiers() []*IdentifierNode

type StarModifiersNode

type StarModifiersNode struct {
	*BaseNode
}

func (*StarModifiersNode) ExceptList

func (n *StarModifiersNode) ExceptList() *StarExceptListNode

func (*StarModifiersNode) ReplaceItems

func (n *StarModifiersNode) ReplaceItems() []*StarReplaceItemNode

type StarNode

type StarNode struct {
	*LeafBaseNode
}

type StarReplaceItemNode

type StarReplaceItemNode struct {
	*BaseNode
}

func (*StarReplaceItemNode) Alias

func (n *StarReplaceItemNode) Alias() *IdentifierNode

func (*StarReplaceItemNode) Expression

func (n *StarReplaceItemNode) Expression() ExpressionNode

type StarWithModifiersNode

type StarWithModifiersNode struct {
	*ExpressionBaseNode
}

func (*StarWithModifiersNode) Modifiers

func (n *StarWithModifiersNode) Modifiers() *StarModifiersNode

type StartBatchStatementNode

type StartBatchStatementNode struct {
	*StatementBaseNode
}

func (*StartBatchStatementNode) BatchType

func (n *StartBatchStatementNode) BatchType() *IdentifierNode

type StatementBaseNode

type StatementBaseNode struct {
	*BaseNode
}

type StatementListNode

type StatementListNode struct {
	*BaseNode
}

func (*StatementListNode) SetVariableDeclarationsAllowed

func (n *StatementListNode) SetVariableDeclarationsAllowed(allowed bool)

func (*StatementListNode) StatementList

func (n *StatementListNode) StatementList() []StatementNode

func (*StatementListNode) VariableDeclarationsAllowed

func (n *StatementListNode) VariableDeclarationsAllowed() bool

type StatementNode

type StatementNode interface {
	Node
}

type StringLiteralNode

type StringLiteralNode struct {
	*LeafBaseNode
}

func (*StringLiteralNode) SetValue

func (n *StringLiteralNode) SetValue(value string)

func (*StringLiteralNode) Value

func (n *StringLiteralNode) Value() string

type StructColumnFieldNode

type StructColumnFieldNode struct {
	*BaseNode
}

func (*StructColumnFieldNode) Name

func (*StructColumnFieldNode) Schema

type StructColumnSchemaNode

type StructColumnSchemaNode struct {
	*ColumnSchemaNode
}

func (*StructColumnSchemaNode) StructFields

func (n *StructColumnSchemaNode) StructFields() []*StructColumnFieldNode

type StructConstructorArgNode

type StructConstructorArgNode struct {
	*BaseNode
}

func (*StructConstructorArgNode) Alias

func (n *StructConstructorArgNode) Alias() *AliasNode

func (*StructConstructorArgNode) Expression

func (n *StructConstructorArgNode) Expression() ExpressionNode

type StructConstructorWithKeywordNode

type StructConstructorWithKeywordNode struct {
	*ExpressionBaseNode
}

func (*StructConstructorWithKeywordNode) Fields

func (*StructConstructorWithKeywordNode) StructType

type StructConstructorWithParensNode

type StructConstructorWithParensNode struct {
	*ExpressionBaseNode
}

func (*StructConstructorWithParensNode) FieldExpressions

func (n *StructConstructorWithParensNode) FieldExpressions() []ExpressionNode

type StructFieldNode

type StructFieldNode struct {
	*BaseNode
}

func (*StructFieldNode) Name

func (n *StructFieldNode) Name() *IdentifierNode

func (*StructFieldNode) Type

func (n *StructFieldNode) Type() TypeNode

type StructTypeNode

type StructTypeNode struct {
	*TypeBaseNode
}

func (*StructTypeNode) StructFields

func (n *StructTypeNode) StructFields() []*StructFieldNode

type SystemVariableAssignmentNode

type SystemVariableAssignmentNode struct {
	*StatementBaseNode
}

func (*SystemVariableAssignmentNode) Expression

func (*SystemVariableAssignmentNode) SystemVariable

type SystemVariableExprNode

type SystemVariableExprNode struct {
	*ParameterExprBaseNode
}

func (*SystemVariableExprNode) Path

type TVFArgumentNode

type TVFArgumentNode struct {
	*BaseNode
}

func (*TVFArgumentNode) ConnectionClause

func (n *TVFArgumentNode) ConnectionClause() *ConnectionClauseNode

func (*TVFArgumentNode) Descriptor

func (n *TVFArgumentNode) Descriptor() *DescriptorNode

func (*TVFArgumentNode) Expr

func (n *TVFArgumentNode) Expr() ExpressionNode

func (*TVFArgumentNode) ModelClause

func (n *TVFArgumentNode) ModelClause() *ModelClauseNode

func (*TVFArgumentNode) TableClause

func (n *TVFArgumentNode) TableClause() *TableClauseNode

type TVFNode

type TVFNode struct {
	*TableExpressionBaseNode
}

func (*TVFNode) Alias

func (n *TVFNode) Alias() *AliasNode

func (*TVFNode) ArgumentEntries

func (n *TVFNode) ArgumentEntries() []*TVFArgumentNode

func (*TVFNode) Hint

func (n *TVFNode) Hint() *HintNode

func (*TVFNode) Name

func (n *TVFNode) Name() *PathExpressionNode

func (*TVFNode) PivotClause

func (n *TVFNode) PivotClause() *PivotClauseNode

func (*TVFNode) SampleClause

func (n *TVFNode) SampleClause() *SampleClauseNode

func (*TVFNode) UnpivotClause

func (n *TVFNode) UnpivotClause() *UnpivotClauseNode

type TVFSchemaColumnNode

type TVFSchemaColumnNode struct {
	*BaseNode
}

func (*TVFSchemaColumnNode) Name

func (*TVFSchemaColumnNode) Type

func (n *TVFSchemaColumnNode) Type() TypeNode

type TVFSchemaNode

type TVFSchemaNode struct {
	*BaseNode
}

func (*TVFSchemaNode) Columns

func (n *TVFSchemaNode) Columns() []*TVFSchemaColumnNode

type TableAndColumnInfoListNode

type TableAndColumnInfoListNode struct {
	*BaseNode
}

func (*TableAndColumnInfoListNode) TableAndColumnInfoEntries

func (n *TableAndColumnInfoListNode) TableAndColumnInfoEntries() []*TableAndColumnInfoNode

type TableAndColumnInfoNode

type TableAndColumnInfoNode struct {
	*BaseNode
}

func (*TableAndColumnInfoNode) ColumnList

func (n *TableAndColumnInfoNode) ColumnList() *ColumnListNode

func (*TableAndColumnInfoNode) TableName

type TableClauseNode

type TableClauseNode struct {
	*BaseNode
}

func (*TableClauseNode) TVF

func (n *TableClauseNode) TVF() *TVFNode

func (*TableClauseNode) TablePath

func (n *TableClauseNode) TablePath() *PathExpressionNode

type TableConstraintBaseNode

type TableConstraintBaseNode struct {
	*TableElementBaseNode
}

func (*TableConstraintBaseNode) ConstraintName

func (n *TableConstraintBaseNode) ConstraintName() *IdentifierNode

type TableConstraintNode

type TableConstraintNode interface {
	TableElementNode
}

type TableDataSourceNode

type TableDataSourceNode struct {
	*TableExpressionBaseNode
}

func (*TableDataSourceNode) ForSystemTime

func (n *TableDataSourceNode) ForSystemTime() *ForSystemTimeNode

func (*TableDataSourceNode) PathExpr

func (n *TableDataSourceNode) PathExpr() *PathExpressionNode

func (*TableDataSourceNode) WhereClause

func (n *TableDataSourceNode) WhereClause() *WhereClauseNode

type TableElementBaseNode

type TableElementBaseNode struct {
	*BaseNode
}

type TableElementListNode

type TableElementListNode struct {
	*BaseNode
}

func (*TableElementListNode) Elements

func (n *TableElementListNode) Elements() []TableElementNode

type TableElementNode

type TableElementNode interface {
	Node
}

type TableExpressionBaseNode

type TableExpressionBaseNode struct {
	*BaseNode
}

type TableExpressionNode

type TableExpressionNode interface {
	Node
}

type TablePathExpressionNode

type TablePathExpressionNode struct {
	*TableExpressionBaseNode
}

func (*TablePathExpressionNode) Alias

func (n *TablePathExpressionNode) Alias() *AliasNode

func (*TablePathExpressionNode) ForSystemTime

func (n *TablePathExpressionNode) ForSystemTime() *ForSystemTimeNode

func (*TablePathExpressionNode) Hint

func (n *TablePathExpressionNode) Hint() *HintNode

func (*TablePathExpressionNode) PathExpr

func (*TablePathExpressionNode) PivotClause

func (n *TablePathExpressionNode) PivotClause() *PivotClauseNode

func (*TablePathExpressionNode) SampleClause

func (n *TablePathExpressionNode) SampleClause() *SampleClauseNode

func (*TablePathExpressionNode) UnnestExpr

func (*TablePathExpressionNode) UnpivotClause

func (n *TablePathExpressionNode) UnpivotClause() *UnpivotClauseNode

func (*TablePathExpressionNode) WithOffset

func (n *TablePathExpressionNode) WithOffset() *WithOffsetNode

type TableSubqueryNode

type TableSubqueryNode struct {
	*TableExpressionBaseNode
}

func (*TableSubqueryNode) Alias

func (n *TableSubqueryNode) Alias() *AliasNode

func (*TableSubqueryNode) PivotClause

func (n *TableSubqueryNode) PivotClause() *PivotClauseNode

func (*TableSubqueryNode) SampleClause

func (n *TableSubqueryNode) SampleClause() *SampleClauseNode

func (*TableSubqueryNode) Subquery

func (n *TableSubqueryNode) Subquery() *QueryNode

func (*TableSubqueryNode) UnpivotClause

func (n *TableSubqueryNode) UnpivotClause() *UnpivotClauseNode

type TemplatedParameterTypeNode

type TemplatedParameterTypeNode struct {
	*BaseNode
}

func (*TemplatedParameterTypeNode) SetKind

func (*TemplatedParameterTypeNode) TemplatedKind

func (n *TemplatedParameterTypeNode) TemplatedKind() TemplatedTypeKind

type TemplatedTypeKind

type TemplatedTypeKind int
const (
	TemplatedUninitialized TemplatedTypeKind = iota
	TemplatedAnyType
	TemplatedAnyProto
	TemplatedAnyEnum
	TemplatedAnyStruct
	TemplatedAnyArray
	TemplatedAnyTable
)

func (TemplatedTypeKind) String

func (k TemplatedTypeKind) String() string

type TransactionIsolationLevelNode

type TransactionIsolationLevelNode struct {
	*TransactionModeBaseNode
}

func (*TransactionIsolationLevelNode) Identifier1

func (*TransactionIsolationLevelNode) Identifier2

Identifier2 second identifier can be non-null only if first identifier is non-null.

type TransactionModeBaseNode

type TransactionModeBaseNode struct {
	*BaseNode
}

type TransactionModeListNode

type TransactionModeListNode struct {
	*BaseNode
}

func (*TransactionModeListNode) Elements

type TransactionModeNode

type TransactionModeNode interface {
	Node
}

type TransactionReadWriteModeNode

type TransactionReadWriteModeNode struct {
	*TransactionModeBaseNode
}

func (*TransactionReadWriteModeNode) Mode

func (*TransactionReadWriteModeNode) SetMode

type TransactionReadWriteModeType

type TransactionReadWriteModeType int
const (
	InvalidTransactionMode TransactionReadWriteModeType = iota
	ReadOnlyTransactionMode
	ReadWriteTransactionMode
)

func (TransactionReadWriteModeType) String

type TransformClauseNode

type TransformClauseNode struct {
	*BaseNode
}

func (*TransformClauseNode) SelectList

func (n *TransformClauseNode) SelectList() *SelectListNode

type TrucateStatementNode

type TrucateStatementNode struct {
	*StatementBaseNode
}

func (*TrucateStatementNode) TargetPath

func (n *TrucateStatementNode) TargetPath() *PathExpressionNode

func (*TrucateStatementNode) Where

type TypeBaseNode

type TypeBaseNode struct {
	*BaseNode
}

func (*TypeBaseNode) Collate

func (n *TypeBaseNode) Collate() *CollateNode

func (*TypeBaseNode) TypeParameters

func (n *TypeBaseNode) TypeParameters() *TypeParameterListNode

type TypeKind

type TypeKind int
const (
	TypeUnknown TypeKind = iota
	TypeInt32
	TypeInt64
	TypeUint32
	TypeUint64
	TypeBool
	TypeFloat
	TypeDouble
	TypeString
	TypeBytes
	TypeDate
	TypeTimestamp
	TypeEnum
	TypeArray
	TypeStruct
	TypeProto
	TypeTime
	TypeDatetime
	TypeGeography
	TypeNumeric
	TypBignumeric
	TypeExtended
	TypeJson
	TypeInternal
)

func (TypeKind) String

func (t TypeKind) String() string

type TypeNode

type TypeNode interface {
	Node
}

type TypeParameterListNode

type TypeParameterListNode struct {
	*BaseNode
}

func (*TypeParameterListNode) Parameters

func (n *TypeParameterListNode) Parameters() []LeafNode

type UnaryExpressionNode

type UnaryExpressionNode struct {
	*ExpressionBaseNode
}

func (*UnaryExpressionNode) Op

func (*UnaryExpressionNode) Operand

func (n *UnaryExpressionNode) Operand() ExpressionNode

func (*UnaryExpressionNode) SQLForOperator

func (n *UnaryExpressionNode) SQLForOperator() string

func (*UnaryExpressionNode) SetOp

type UnaryExpressionOp

type UnaryExpressionOp int
const (
	NotSetUnaryOp UnaryExpressionOp = iota
	NotUnaryOp
	BitwiseNotUnaryOp
	MinusUnaryOp
	PlusUnaryOp
	IsUnknownUnaryOp
	IsNotUnknownUnaryOp
)

func (UnaryExpressionOp) String

func (o UnaryExpressionOp) String() string

type UnnestExpressionNode

type UnnestExpressionNode struct {
	*BaseNode
}

func (*UnnestExpressionNode) Expression

func (n *UnnestExpressionNode) Expression() ExpressionNode

type UnnestExpressionWithOptAliasAndOffsetNode

type UnnestExpressionWithOptAliasAndOffsetNode struct {
	*BaseNode
}

func (*UnnestExpressionWithOptAliasAndOffsetNode) OptionalAlias

func (*UnnestExpressionWithOptAliasAndOffsetNode) OptionalWithOffset

func (*UnnestExpressionWithOptAliasAndOffsetNode) UnnestExpression

type UnpivotClauseNode

type UnpivotClauseNode struct {
	*BaseNode
}

func (*UnpivotClauseNode) NullFilter

func (n *UnpivotClauseNode) NullFilter() UnpivotNullFilter

func (*UnpivotClauseNode) OutputAlias

func (n *UnpivotClauseNode) OutputAlias() *AliasNode

func (*UnpivotClauseNode) SetNullFilter

func (n *UnpivotClauseNode) SetNullFilter(filter UnpivotNullFilter)

func (*UnpivotClauseNode) UnpivotInItems

func (n *UnpivotClauseNode) UnpivotInItems() *UnpivotInItemListNode

func (*UnpivotClauseNode) UnpivotOutputNameColumn

func (n *UnpivotClauseNode) UnpivotOutputNameColumn() *PathExpressionNode

func (*UnpivotClauseNode) UnpivotOutputValueColumns

func (n *UnpivotClauseNode) UnpivotOutputValueColumns() *PathExpressionListNode

type UnpivotInItemLabelNode

type UnpivotInItemLabelNode struct {
	*BaseNode
}

func (*UnpivotInItemLabelNode) Label

func (n *UnpivotInItemLabelNode) Label() LeafNode

type UnpivotInItemListNode

type UnpivotInItemListNode struct {
	*BaseNode
}

func (*UnpivotInItemListNode) InItems

func (n *UnpivotInItemListNode) InItems() []*UnpivotInItemNode

type UnpivotInItemNode

type UnpivotInItemNode struct {
	*BaseNode
}

func (*UnpivotInItemNode) Alias

func (*UnpivotInItemNode) UnpivotColumns

func (n *UnpivotInItemNode) UnpivotColumns() *PathExpressionListNode

type UnpivotNullFilter

type UnpivotNullFilter int
const (
	UnpivotUnspecified UnpivotNullFilter = iota
	UnpivotInclude
	UnpivotExclude
)

func (UnpivotNullFilter) String

func (f UnpivotNullFilter) String() string

type UntilClauseNode

type UntilClauseNode struct {
	*BaseNode
}

func (*UntilClauseNode) Condition

func (n *UntilClauseNode) Condition() ExpressionNode

func (*UntilClauseNode) RepeatStmt

func (n *UntilClauseNode) RepeatStmt() *RepeatStatementNode

type UpdateItemListNode

type UpdateItemListNode struct {
	*BaseNode
}

func (*UpdateItemListNode) UpdateItems

func (n *UpdateItemListNode) UpdateItems() []*UpdateItemNode

type UpdateItemNode

type UpdateItemNode struct {
	*BaseNode
}

func (*UpdateItemNode) DeleteStatement

func (n *UpdateItemNode) DeleteStatement() *DeleteStatementNode

func (*UpdateItemNode) InsertStatement

func (n *UpdateItemNode) InsertStatement() *InsertStatementNode

func (*UpdateItemNode) SetValue

func (n *UpdateItemNode) SetValue() *UpdateSetValueNode

func (*UpdateItemNode) UpdateStatement

func (n *UpdateItemNode) UpdateStatement() *UpdateStatementNode

type UpdateSetValueNode

type UpdateSetValueNode struct {
	*BaseNode
}

func (*UpdateSetValueNode) Path

func (*UpdateSetValueNode) Value

type UpdateStatementNode

type UpdateStatementNode struct {
	*StatementBaseNode
}

func (*UpdateStatementNode) Alias

func (n *UpdateStatementNode) Alias() *AliasNode

func (*UpdateStatementNode) AssertRowsModified

func (n *UpdateStatementNode) AssertRowsModified() *AssertRowsModifiedNode

func (*UpdateStatementNode) FromClause

func (n *UpdateStatementNode) FromClause() *FromClauseNode

func (*UpdateStatementNode) Offset

func (n *UpdateStatementNode) Offset() *WithOffsetNode

func (*UpdateStatementNode) Returning

func (n *UpdateStatementNode) Returning() *ReturningClauseNode

func (*UpdateStatementNode) TargetPath

func (*UpdateStatementNode) UpdateItemList

func (n *UpdateStatementNode) UpdateItemList() *UpdateItemListNode

func (*UpdateStatementNode) Where

type UsingClauseNode

type UsingClauseNode struct {
	*BaseNode
}

func (*UsingClauseNode) Keys

func (n *UsingClauseNode) Keys() []*IdentifierNode

type VariableDeclarationNode

type VariableDeclarationNode struct {
	*ScriptStatementNode
}

func (*VariableDeclarationNode) DefaultValue

func (n *VariableDeclarationNode) DefaultValue() ExpressionNode

func (*VariableDeclarationNode) Type

func (*VariableDeclarationNode) VariableList

func (n *VariableDeclarationNode) VariableList() *IdentifierListNode

type WhenThenClauseListNode

type WhenThenClauseListNode struct {
	*BaseNode
}

func (*WhenThenClauseListNode) WhenThenClauses

func (n *WhenThenClauseListNode) WhenThenClauses() []*WhenThenClauseNode

type WhenThenClauseNode

type WhenThenClauseNode struct {
	*BaseNode
}

func (*WhenThenClauseNode) Body

func (*WhenThenClauseNode) CaseStmt

func (n *WhenThenClauseNode) CaseStmt() *CaseStatementNode

func (*WhenThenClauseNode) Condition

func (n *WhenThenClauseNode) Condition() ExpressionNode

type WhereClauseNode

type WhereClauseNode struct {
	*BaseNode
}

func (*WhereClauseNode) Expression

func (n *WhereClauseNode) Expression() ExpressionNode

type WhileStatementNode

type WhileStatementNode struct {
	*LoopStatementNode
}

func (*WhileStatementNode) Condition

func (n *WhileStatementNode) Condition() ExpressionNode

type WindowClauseNode

type WindowClauseNode struct {
	*BaseNode
}

func (*WindowClauseNode) Windows

func (n *WindowClauseNode) Windows() []*WindowDefinitionNode

type WindowDefinitionNode

type WindowDefinitionNode struct {
	*BaseNode
}

func (*WindowDefinitionNode) Name

func (*WindowDefinitionNode) WindowSpec

type WindowFrameBoundaryType

type WindowFrameBoundaryType int
const (
	UnboundedPrecedingType WindowFrameBoundaryType = iota
	OffsetPrecedingType
	CurrentRowType
	OffsetFollowingType
	UnboundedFollowingType
)

func (WindowFrameBoundaryType) String

func (t WindowFrameBoundaryType) String() string

type WindowFrameExprNode

type WindowFrameExprNode struct {
	*BaseNode
}

func (*WindowFrameExprNode) BoundaryType

func (n *WindowFrameExprNode) BoundaryType() WindowFrameBoundaryType

func (*WindowFrameExprNode) Expression

func (n *WindowFrameExprNode) Expression() ExpressionNode

func (*WindowFrameExprNode) SetBoundaryType

func (n *WindowFrameExprNode) SetBoundaryType(boundaryType WindowFrameBoundaryType)

type WindowFrameNode

type WindowFrameNode struct {
	*BaseNode
}

func (*WindowFrameNode) EndExpr

func (n *WindowFrameNode) EndExpr() *WindowFrameExprNode

func (*WindowFrameNode) FrameUnit

func (n *WindowFrameNode) FrameUnit() WindowFrameUnit

func (*WindowFrameNode) FrameUnitString

func (n *WindowFrameNode) FrameUnitString() string

func (*WindowFrameNode) SetUnit

func (n *WindowFrameNode) SetUnit(frameUnit WindowFrameUnit)

func (*WindowFrameNode) StartExpr

func (n *WindowFrameNode) StartExpr() *WindowFrameExprNode

type WindowFrameUnit

type WindowFrameUnit int
const (
	WindowFrameRows WindowFrameUnit = iota
	WindowFrameRange
)

func (WindowFrameUnit) String

func (u WindowFrameUnit) String() string

type WindowSpecificationNode

type WindowSpecificationNode struct {
	*BaseNode
}

func (*WindowSpecificationNode) BaseWindowName

func (n *WindowSpecificationNode) BaseWindowName() *IdentifierNode

func (*WindowSpecificationNode) OrderBy

func (n *WindowSpecificationNode) OrderBy() *OrderByNode

func (*WindowSpecificationNode) PartitionBy

func (n *WindowSpecificationNode) PartitionBy() *PartitionByNode

func (*WindowSpecificationNode) WindowFrame

func (n *WindowSpecificationNode) WindowFrame() *WindowFrameNode

type WithClauseEntryNode

type WithClauseEntryNode struct {
	*BaseNode
}

func (*WithClauseEntryNode) Alias

func (n *WithClauseEntryNode) Alias() *IdentifierNode

func (*WithClauseEntryNode) Query

func (n *WithClauseEntryNode) Query() *QueryNode

type WithClauseNode

type WithClauseNode struct {
	*BaseNode
}

func (*WithClauseNode) Recursive

func (n *WithClauseNode) Recursive() bool

func (*WithClauseNode) SetRecursive

func (n *WithClauseNode) SetRecursive(recursive bool)

func (*WithClauseNode) With

func (n *WithClauseNode) With() []*WithClauseEntryNode

type WithConnectionClauseNode

type WithConnectionClauseNode struct {
	*BaseNode
}

func (*WithConnectionClauseNode) ConnectionClause

func (n *WithConnectionClauseNode) ConnectionClause() *ConnectionClauseNode

type WithGroupRowsNode

type WithGroupRowsNode struct {
	*BaseNode
}

func (*WithGroupRowsNode) Subquery

func (n *WithGroupRowsNode) Subquery() *QueryNode

type WithOffsetNode

type WithOffsetNode struct {
	*BaseNode
}

func (*WithOffsetNode) Alias

func (n *WithOffsetNode) Alias() *AliasNode

type WithPartitionColumnsClauseNode

type WithPartitionColumnsClauseNode struct {
	*BaseNode
}

func (*WithPartitionColumnsClauseNode) TableElementList

type WithWeightNode

type WithWeightNode struct {
	*BaseNode
}

func (*WithWeightNode) Alias

func (n *WithWeightNode) Alias() *AliasNode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL