pub enum SyntaxKind {
Show 577 variants
Unparsable,
File,
ColumnReference,
ObjectReference,
Expression,
WildcardIdentifier,
Function,
HavingClause,
PathSegment,
LimitClause,
CubeRollupClause,
GroupingSetsClause,
GroupingExpressionList,
SetClause,
FetchClause,
FunctionDefinition,
AlterSequenceOptionsSegment,
RoleReference,
TablespaceReference,
ExtensionReference,
TagReference,
ColumnDefinition,
ColumnConstraintSegment,
CommentClause,
TableEndClause,
MergeMatch,
MergeWhenNotMatchedClause,
MergeInsertClause,
MergeUpdateClause,
MergeDeleteClause,
SetClauseList,
TableReference,
GroupbyClause,
FrameClause,
WithCompoundStatement,
CommonTableExpression,
CTEColumnList,
TriggerReference,
TableConstraint,
JoinOnCondition,
DatabaseReference,
CollationReference,
OverClause,
NamedWindow,
WindowSpecification,
PartitionbyClause,
JoinClause,
DropTriggerStatement,
SampleExpression,
TableExpression,
CreateTriggerStatement,
DropModelStatement,
DescribeStatement,
UseStatement,
ExplainStatement,
CreateSequenceStatement,
CreateSequenceOptionsSegment,
AlterSequenceStatement,
DropSequenceStatement,
DropCastStatement,
CreateFunctionStatement,
DropFunctionStatement,
CreateModelStatement,
CreateViewStatement,
DeleteStatement,
UpdateStatement,
CreateCastStatement,
CreateRoleStatement,
DropRoleStatement,
AlterTableStatement,
CreateSchemaStatement,
SetSchemaStatement,
DropSchemaStatement,
DropTypeStatement,
CreateDatabaseStatement,
DropDatabaseStatement,
FunctionParameterList,
CreateIndexStatement,
DropIndexStatement,
CreateTableStatement,
AccessStatement,
InsertStatement,
TransactionStatement,
DropTableStatement,
DropViewStatement,
CreateUserStatement,
DropUserStatement,
ArrayExpression,
LocalAlias,
MergeStatement,
IndexColumnDefinition,
AggregateOrderByClause,
FunctionName,
CaseExpression,
WhenClause,
ElseClause,
WhereClause,
SetOperator,
ValuesClause,
EmptyStructLiteral,
ObjectLiteral,
ObjectLiteralElement,
TimeZoneGrammar,
BracketedArguments,
DataType,
AliasExpression,
ArrayAccessor,
ArrayLiteral,
TypedArrayLiteral,
StructType,
StructLiteral,
TypedStructLiteral,
IntervalExpression,
ArrayType,
SizedArrayType,
SelectStatement,
OverlapsClause,
SelectClause,
Statement,
WithNoSchemaBindingClause,
WithDataClause,
SetExpression,
FromClause,
EmptyStructLiteralBrackets,
WildcardExpression,
OrderbyClause,
TruncateStatement,
FromExpression,
FromExpressionElement,
SelectClauseModifier,
NamedWindowExpression,
SelectClauseElement,
QualifyClause,
MultiStatementSegment,
AssertStatement,
ForInStatements,
ForInStatement,
RepeatStatements,
RepeatStatement,
IfStatements,
IfStatement,
LoopStatements,
LoopStatement,
WhileStatements,
WhileStatement,
DatePartWeek,
SelectExceptClause,
SelectReplaceClause,
StructTypeSchema,
Tuple,
NamedArgument,
DeclareSegment,
SetSegment,
PartitionBySegment,
ClusterBySegment,
OptionsSegment,
CreateExternalTableStatement,
AlterViewStatement,
CreateMaterializedViewStatement,
AlterMaterializedViewSetOptionsStatement,
DropMaterializedViewStatement,
ParameterizedExpression,
PivotForClause,
FromPivotExpression,
UnpivotClause,
FromUnpivotExpression,
NotMatchedByTargetClause,
MergeWhenMatchedClause,
ProcedureName,
ExportStatement,
ProcedureParameterList,
ProcedureStatements,
CallStatement,
ReturnStatement,
BreakStatement,
LeaveStatement,
ContinueStatement,
RaiseStatement,
PsqlVariable,
ComparisonOperator,
DatetimeTypeIdentifier,
DatetimeLiteral,
IndexAccessMethod,
OperatorClassReference,
DefinitionParameter,
DefinitionParameters,
RelationOption,
RelationOptions,
AlterFunctionActionSegment,
AlterProcedureActionSegment,
AlterProcedureStatement,
DropProcedureStatement,
WktGeometryType,
IntoClause,
ForClause,
AlterRoleStatement,
ExplainOption,
CreateTableAsStatement,
AlterPublicationStatement,
CreatePublicationStatement,
PublicationObjects,
PublicationTable,
PublicationReference,
DropExtensionStatement,
CreateExtensionStatement,
VersionIdentifier,
AlterTableActionSegment,
DropPublicationStatement,
AlterMaterializedViewStatement,
AlterMaterializedViewActionSegment,
RefreshMaterializedViewStatement,
WithCheckOption,
AlterPolicyStatement,
AlterDatabaseStatement,
VacuumStatement,
LikeOptionSegment,
PartitionBoundSpec,
IndexParameters,
ReferentialActionSegment,
IndexElement,
ExclusionConstraintElement,
AlterDefaultPrivilegesStatement,
AlterDefaultPrivilegesObjectPrivilege,
AlterDefaultPrivilegesSchemaObject,
AlterDefaultPrivilegesToFromRoles,
AlterDefaultPrivilegesGrant,
DropOwnedStatement,
ReassignOwnedStatement,
IndexElementOptions,
AlterDefaultPrivilegesRevoke,
AlterIndexStatement,
ReindexStatementSegment,
AnalyzeStatement,
AlterTrigger,
OperationClassReference,
ConflictAction,
ConflictTarget,
SetStatement,
CreatePolicyStatement,
CreateDomainStatement,
AlterDomainStatement,
DropDomainStatement,
DropPolicyStatement,
LoadStatement,
ResetStatement,
ListenStatement,
NotifyStatement,
UnlistenStatement,
ClusterStatement,
LanguageClause,
DoStatement,
CreateUserMappingStatement,
ImportForeignSchemaStatement,
CreateServerStatement,
CreateCollationStatement,
AlterTypeStatement,
CreateTypeStatement,
LockTableStatement,
CopyStatement,
DiscardStatement,
AlterSchemaStatement,
ServerReference,
ArrayJoinClause,
TableEngineFunction,
OnClusterClause,
Engine,
EngineFunction,
DatabaseEngine,
ColumnTtlSegment,
TableTtlSegment,
DropDictionaryStatement,
DropQuotaStatement,
DropSettingProfileStatement,
SystemMergesSegment,
SystemTtlMergesSegment,
SystemMovesSegment,
SystemReplicaSegment,
SystemFilesystemSegment,
SystemReplicatedSegment,
SystemReplicationSegment,
SystemFetchesSegment,
SystemDistributedSegment,
SystemModelSegment,
SystemFileSegment,
SystemUnfreezeSegment,
SystemStatement,
ConnectbyClause,
CallSegment,
WithingroupClause,
PatternExpression,
MatchRecognizeClause,
ChangesClause,
FromAtExpression,
FromBeforeExpression,
SnowflakeKeywordExpression,
SemiStructuredExpression,
SelectExcludeClause,
SelectRenameClause,
AlterTableTableColumnAction,
AlterTableClusteringAction,
AlterTableConstraintAction,
AlterWarehouseStatement,
AlterShareStatement,
AlterStorageIntegrationStatement,
AlterExternalTableStatement,
CommentEqualsClause,
TagBracketedEquals,
TagEquals,
CreateCloneStatement,
CreateDatabaseFromShareStatement,
CreateProcedureStatement,
ScriptingBlockStatement,
ScriptingLetStatement,
AlterFunctionStatement,
CreateExternalFunctionStatement,
WarehouseObjectProperties,
ConstraintPropertiesSegment,
CopyOptions,
SchemaObjectProperties,
CreateTaskStatement,
SnowflakeTaskExpressionSegment,
CreateStatement,
CreateFileFormatSegment,
AlterFileFormatSegment,
CsvFileFormatTypeParameters,
JsonFileFormatTypeParameters,
AvroFileFormatTypeParameters,
OrcFileFormatTypeParameters,
ParquetFileFormatTypeParameters,
XmlFileFormatTypeParameters,
AlterPipeSegment,
FileFormatSegment,
FormatTypeOptions,
CopyIntoLocationStatement,
CopyIntoTableStatement,
StorageLocation,
StageParameters,
S3ExternalStageParameters,
GcsExternalStageParameters,
AzureBlobStorageExternalStageParameters,
CreateStageStatement,
AlterStageStatement,
CreateStreamStatement,
AlterStreamStatement,
ShowStatement,
AlterUserStatement,
AlterSessionStatement,
AlterSessionSetStatement,
AlterSessionUnsetClause,
AlterTaskStatement,
AlterTaskSpecialSetClause,
AlterTaskSetClause,
AlterTaskUnsetClause,
ExecuteTaskClause,
UndropStatement,
CommentStatement,
DropExternalTableStatement,
ListStatement,
GetStatement,
PutStatement,
RemoveStatement,
CastExpression,
DropObjectStatement,
UnsetStatement,
SqlConfOption,
BinaryOperator,
PrimitiveType,
CreateWidgetStatement,
ReplaceTableStatement,
RemoveWidgetStatement,
UseDatabaseStatement,
InsertOverwriteDirectoryStatement,
InsertOverwriteDirectoryHiveFmtStatement,
LoadDataStatement,
ClusterByClause,
DistributeByClause,
HintFunction,
SelectHint,
WithCubeRollupClause,
SortByClause,
LateralViewClause,
PivotClause,
TransformClause,
AddFileStatement,
AddJarStatement,
AnalyzeTableStatement,
CacheTable,
ClearCache,
ListFileStatement,
ListJarStatement,
RefreshStatement,
UncacheTable,
FileReference,
PropertyNameIdentifier,
GeneratedColumnDefinition,
IntervalLiteral,
DescribeHistoryStatement,
DescribeDetailStatement,
GenerateManifestFileStatement,
ConvertToDeltaStatement,
RestoreTableStatement,
ConstraintStatement,
ApplyChangesIntoStatement,
UsingClause,
DataSourceFormat,
IcebergTransformation,
MsckRepairTableStatement,
RowFormatClause,
SkewedByClause,
Bracketed,
NumericLiteral,
Keyword,
EndOfFile,
Whitespace,
Newline,
NakedIdentifier,
Unlexable,
StartBracket,
EndBracket,
InlineComment,
Identifier,
Raw,
QuotedIdentifier,
Star,
Dot,
Comma,
Comment,
EmitsSegment,
Literal,
BareFunction,
NullLiteral,
BooleanLiteral,
BlockComment,
QuotedLiteral,
DoubleDivide,
Meta,
Colon,
StatementTerminator,
StartSquareBracket,
EndSquareBracket,
StartCurlyBracket,
Tilde,
CastingOperator,
RawComparisonOperator,
DatePart,
Pipe,
SignIndicator,
LikeOperator,
Word,
DoubleQuote,
SingleQuote,
Dash,
Semicolon,
BackQuote,
DollarQuote,
Not,
Ampersand,
Question,
Percent,
Divide,
Minus,
Plus,
Caret,
VerticalBar,
EndCurlyBracket,
FunctionNameIdentifier,
Dedent,
Indent,
Implicit,
AtSignLiteral,
QuestionMark,
RightArrow,
UdfBody,
StartAngleBracket,
EndAngleBracket,
Lambda,
NakedIdentifierAll,
ProcedureNameIdentifier,
Parameter,
DateConstructorLiteral,
ProcedureOption,
ExportOption,
PropertiesNakedIdentifier,
Symbol,
DataTypeIdentifier,
Placeholder,
ExecuteScriptStatement,
AssignmentOperator,
Batch,
PivotColumnReference,
IntoTableClause,
PasswordAuth,
ExecuteAsClause,
UnicodeSingleQuote,
EscapedSingleQuote,
UnicodeDoubleQuote,
JsonOperator,
At,
BitStringLiteral,
DollarNumericLiteral,
WidgetNameIdentifier,
FileKeyword,
SemiStructuredElement,
BytesDoubleQuote,
BytesSingleQuote,
FileFormat,
FileType,
StartHint,
EndHint,
FunctionAssigner,
UnquotedFilePath,
Dollar,
SystemFunctionName,
IntegerLiteral,
StageEncryptionOption,
BucketPath,
QuotedStar,
StagePath,
FileLiteral,
BytesQuotedLiteral,
SignedQuotedLiteral,
ParameterAssigner,
ColumnSelector,
DollarLiteral,
ExcludeBracketClose,
WalrusOperator,
WarehouseSize,
Variable,
ExcludeBracketOpen,
SymlinkFormatManifest,
StartExcludeBracket,
CompressionType,
CopyOnErrorOption,
ColumnIndexIdentifierSegment,
ScalingPolicy,
ValidationModeOption,
EndExcludeBracket,
IdentifierList,
TemplateLoop,
ColonDelimiter,
SqlcmdOperator,
Slice,
TableEndClauseSegment,
PragmaStatement,
PragmaReference,
Slash,
DataFormatSegment,
AuthorizationSegment,
ColumnAttributeSegment,
ShowModelStatement,
CreateExternalSchemaStatement,
CreateLibraryStatement,
UnloadStatement,
DeclareStatement,
FetchStatement,
CloseStatement,
CreateDatashareStatement,
DescDatashareStatement,
DropDatashareStatement,
ShowDatasharesStatement,
GrantDatashareStatement,
CreateRlsPolicyStatement,
ManageRlsPolicyStatement,
DropRlsPolicyStatement,
AnalyzeCompressionStatement,
PartitionedBySegment,
RowFormatDelimitedSegment,
ObjectUnpivoting,
ArrayUnnesting,
AlterGroup,
CreateGroup,
ListaggOverflowClauseSegment,
UnorderedSelectStatementSegment,
MapType,
MapTypeSchema,
PrepareStatement,
ExecuteStatement,
}
Variants§
Unparsable
File
ColumnReference
ObjectReference
Expression
WildcardIdentifier
Function
HavingClause
PathSegment
LimitClause
CubeRollupClause
GroupingSetsClause
GroupingExpressionList
SetClause
FetchClause
FunctionDefinition
AlterSequenceOptionsSegment
RoleReference
TablespaceReference
ExtensionReference
TagReference
ColumnDefinition
ColumnConstraintSegment
CommentClause
TableEndClause
MergeMatch
MergeWhenNotMatchedClause
MergeInsertClause
MergeUpdateClause
MergeDeleteClause
SetClauseList
TableReference
GroupbyClause
FrameClause
WithCompoundStatement
CommonTableExpression
CTEColumnList
TriggerReference
TableConstraint
JoinOnCondition
DatabaseReference
CollationReference
OverClause
NamedWindow
WindowSpecification
PartitionbyClause
JoinClause
DropTriggerStatement
SampleExpression
TableExpression
CreateTriggerStatement
DropModelStatement
DescribeStatement
UseStatement
ExplainStatement
CreateSequenceStatement
CreateSequenceOptionsSegment
AlterSequenceStatement
DropSequenceStatement
DropCastStatement
CreateFunctionStatement
DropFunctionStatement
CreateModelStatement
CreateViewStatement
DeleteStatement
UpdateStatement
CreateCastStatement
CreateRoleStatement
DropRoleStatement
AlterTableStatement
CreateSchemaStatement
SetSchemaStatement
DropSchemaStatement
DropTypeStatement
CreateDatabaseStatement
DropDatabaseStatement
FunctionParameterList
CreateIndexStatement
DropIndexStatement
CreateTableStatement
AccessStatement
InsertStatement
TransactionStatement
DropTableStatement
DropViewStatement
CreateUserStatement
DropUserStatement
ArrayExpression
LocalAlias
MergeStatement
IndexColumnDefinition
AggregateOrderByClause
FunctionName
CaseExpression
WhenClause
ElseClause
WhereClause
SetOperator
ValuesClause
EmptyStructLiteral
ObjectLiteral
ObjectLiteralElement
TimeZoneGrammar
BracketedArguments
DataType
AliasExpression
ArrayAccessor
ArrayLiteral
TypedArrayLiteral
StructType
StructLiteral
TypedStructLiteral
IntervalExpression
ArrayType
SizedArrayType
SelectStatement
OverlapsClause
SelectClause
Statement
WithNoSchemaBindingClause
WithDataClause
SetExpression
FromClause
EmptyStructLiteralBrackets
WildcardExpression
OrderbyClause
TruncateStatement
FromExpression
FromExpressionElement
SelectClauseModifier
NamedWindowExpression
SelectClauseElement
QualifyClause
MultiStatementSegment
AssertStatement
ForInStatements
ForInStatement
RepeatStatements
RepeatStatement
IfStatements
IfStatement
LoopStatements
LoopStatement
WhileStatements
WhileStatement
DatePartWeek
SelectExceptClause
SelectReplaceClause
StructTypeSchema
Tuple
NamedArgument
DeclareSegment
SetSegment
PartitionBySegment
ClusterBySegment
OptionsSegment
CreateExternalTableStatement
AlterViewStatement
CreateMaterializedViewStatement
AlterMaterializedViewSetOptionsStatement
DropMaterializedViewStatement
ParameterizedExpression
PivotForClause
FromPivotExpression
UnpivotClause
FromUnpivotExpression
NotMatchedByTargetClause
MergeWhenMatchedClause
ProcedureName
ExportStatement
ProcedureParameterList
ProcedureStatements
CallStatement
ReturnStatement
BreakStatement
LeaveStatement
ContinueStatement
RaiseStatement
PsqlVariable
ComparisonOperator
DatetimeTypeIdentifier
DatetimeLiteral
IndexAccessMethod
OperatorClassReference
DefinitionParameter
DefinitionParameters
RelationOption
RelationOptions
AlterFunctionActionSegment
AlterProcedureActionSegment
AlterProcedureStatement
DropProcedureStatement
WktGeometryType
IntoClause
ForClause
AlterRoleStatement
ExplainOption
CreateTableAsStatement
AlterPublicationStatement
CreatePublicationStatement
PublicationObjects
PublicationTable
PublicationReference
DropExtensionStatement
CreateExtensionStatement
VersionIdentifier
AlterTableActionSegment
DropPublicationStatement
AlterMaterializedViewStatement
AlterMaterializedViewActionSegment
RefreshMaterializedViewStatement
WithCheckOption
AlterPolicyStatement
AlterDatabaseStatement
VacuumStatement
LikeOptionSegment
PartitionBoundSpec
IndexParameters
ReferentialActionSegment
IndexElement
ExclusionConstraintElement
AlterDefaultPrivilegesStatement
AlterDefaultPrivilegesObjectPrivilege
AlterDefaultPrivilegesSchemaObject
AlterDefaultPrivilegesToFromRoles
AlterDefaultPrivilegesGrant
DropOwnedStatement
ReassignOwnedStatement
IndexElementOptions
AlterDefaultPrivilegesRevoke
AlterIndexStatement
ReindexStatementSegment
AnalyzeStatement
AlterTrigger
OperationClassReference
ConflictAction
ConflictTarget
SetStatement
CreatePolicyStatement
CreateDomainStatement
AlterDomainStatement
DropDomainStatement
DropPolicyStatement
LoadStatement
ResetStatement
ListenStatement
NotifyStatement
UnlistenStatement
ClusterStatement
LanguageClause
DoStatement
CreateUserMappingStatement
ImportForeignSchemaStatement
CreateServerStatement
CreateCollationStatement
AlterTypeStatement
CreateTypeStatement
LockTableStatement
CopyStatement
DiscardStatement
AlterSchemaStatement
ServerReference
ArrayJoinClause
TableEngineFunction
OnClusterClause
Engine
EngineFunction
DatabaseEngine
ColumnTtlSegment
TableTtlSegment
DropDictionaryStatement
DropQuotaStatement
DropSettingProfileStatement
SystemMergesSegment
SystemTtlMergesSegment
SystemMovesSegment
SystemReplicaSegment
SystemFilesystemSegment
SystemReplicatedSegment
SystemReplicationSegment
SystemFetchesSegment
SystemDistributedSegment
SystemModelSegment
SystemFileSegment
SystemUnfreezeSegment
SystemStatement
ConnectbyClause
CallSegment
WithingroupClause
PatternExpression
MatchRecognizeClause
ChangesClause
FromAtExpression
FromBeforeExpression
SnowflakeKeywordExpression
SemiStructuredExpression
SelectExcludeClause
SelectRenameClause
AlterTableTableColumnAction
AlterTableClusteringAction
AlterTableConstraintAction
AlterWarehouseStatement
AlterStorageIntegrationStatement
AlterExternalTableStatement
CommentEqualsClause
TagBracketedEquals
TagEquals
CreateCloneStatement
CreateProcedureStatement
ScriptingBlockStatement
ScriptingLetStatement
AlterFunctionStatement
CreateExternalFunctionStatement
WarehouseObjectProperties
ConstraintPropertiesSegment
CopyOptions
SchemaObjectProperties
CreateTaskStatement
SnowflakeTaskExpressionSegment
CreateStatement
CreateFileFormatSegment
AlterFileFormatSegment
CsvFileFormatTypeParameters
JsonFileFormatTypeParameters
AvroFileFormatTypeParameters
OrcFileFormatTypeParameters
ParquetFileFormatTypeParameters
XmlFileFormatTypeParameters
AlterPipeSegment
FileFormatSegment
FormatTypeOptions
CopyIntoLocationStatement
CopyIntoTableStatement
StorageLocation
StageParameters
S3ExternalStageParameters
GcsExternalStageParameters
AzureBlobStorageExternalStageParameters
CreateStageStatement
AlterStageStatement
CreateStreamStatement
AlterStreamStatement
ShowStatement
AlterUserStatement
AlterSessionStatement
AlterSessionSetStatement
AlterSessionUnsetClause
AlterTaskStatement
AlterTaskSpecialSetClause
AlterTaskSetClause
AlterTaskUnsetClause
ExecuteTaskClause
UndropStatement
CommentStatement
DropExternalTableStatement
ListStatement
GetStatement
PutStatement
RemoveStatement
CastExpression
DropObjectStatement
UnsetStatement
SqlConfOption
BinaryOperator
PrimitiveType
CreateWidgetStatement
ReplaceTableStatement
RemoveWidgetStatement
UseDatabaseStatement
InsertOverwriteDirectoryStatement
InsertOverwriteDirectoryHiveFmtStatement
LoadDataStatement
ClusterByClause
DistributeByClause
HintFunction
SelectHint
WithCubeRollupClause
SortByClause
LateralViewClause
PivotClause
TransformClause
AddFileStatement
AddJarStatement
AnalyzeTableStatement
CacheTable
ClearCache
ListFileStatement
ListJarStatement
RefreshStatement
UncacheTable
FileReference
PropertyNameIdentifier
GeneratedColumnDefinition
IntervalLiteral
DescribeHistoryStatement
DescribeDetailStatement
GenerateManifestFileStatement
ConvertToDeltaStatement
RestoreTableStatement
ConstraintStatement
ApplyChangesIntoStatement
UsingClause
DataSourceFormat
IcebergTransformation
MsckRepairTableStatement
RowFormatClause
SkewedByClause
Bracketed
NumericLiteral
Keyword
EndOfFile
Whitespace
Newline
NakedIdentifier
Unlexable
StartBracket
EndBracket
InlineComment
Identifier
Raw
QuotedIdentifier
Star
Dot
Comma
Comment
EmitsSegment
Literal
BareFunction
NullLiteral
BooleanLiteral
BlockComment
QuotedLiteral
DoubleDivide
Meta
Colon
StatementTerminator
StartSquareBracket
EndSquareBracket
StartCurlyBracket
Tilde
CastingOperator
RawComparisonOperator
DatePart
Pipe
SignIndicator
LikeOperator
Word
DoubleQuote
SingleQuote
Dash
Semicolon
BackQuote
DollarQuote
Not
Ampersand
Question
Percent
Divide
Minus
Plus
Caret
VerticalBar
EndCurlyBracket
FunctionNameIdentifier
Dedent
Indent
Implicit
AtSignLiteral
QuestionMark
RightArrow
UdfBody
StartAngleBracket
EndAngleBracket
Lambda
NakedIdentifierAll
ProcedureNameIdentifier
Parameter
DateConstructorLiteral
ProcedureOption
ExportOption
PropertiesNakedIdentifier
Symbol
DataTypeIdentifier
Placeholder
ExecuteScriptStatement
AssignmentOperator
Batch
PivotColumnReference
IntoTableClause
PasswordAuth
ExecuteAsClause
UnicodeSingleQuote
EscapedSingleQuote
UnicodeDoubleQuote
JsonOperator
At
BitStringLiteral
DollarNumericLiteral
WidgetNameIdentifier
FileKeyword
SemiStructuredElement
BytesDoubleQuote
BytesSingleQuote
FileFormat
FileType
StartHint
EndHint
FunctionAssigner
UnquotedFilePath
Dollar
SystemFunctionName
IntegerLiteral
StageEncryptionOption
BucketPath
QuotedStar
StagePath
FileLiteral
BytesQuotedLiteral
SignedQuotedLiteral
ParameterAssigner
ColumnSelector
DollarLiteral
ExcludeBracketClose
WalrusOperator
WarehouseSize
Variable
ExcludeBracketOpen
SymlinkFormatManifest
StartExcludeBracket
CompressionType
CopyOnErrorOption
ColumnIndexIdentifierSegment
ScalingPolicy
ValidationModeOption
EndExcludeBracket
IdentifierList
TemplateLoop
ColonDelimiter
SqlcmdOperator
Slice
TableEndClauseSegment
PragmaStatement
PragmaReference
Slash
DataFormatSegment
AuthorizationSegment
ColumnAttributeSegment
ShowModelStatement
CreateExternalSchemaStatement
CreateLibraryStatement
UnloadStatement
DeclareStatement
FetchStatement
CloseStatement
CreateRlsPolicyStatement
ManageRlsPolicyStatement
DropRlsPolicyStatement
AnalyzeCompressionStatement
PartitionedBySegment
RowFormatDelimitedSegment
ObjectUnpivoting
ArrayUnnesting
AlterGroup
CreateGroup
ListaggOverflowClauseSegment
UnorderedSelectStatementSegment
MapType
MapTypeSchema
PrepareStatement
ExecuteStatement
Implementations§
Source§impl SyntaxKind
impl SyntaxKind
pub fn indent_val(self) -> i8
Trait Implementations§
Source§impl Clone for SyntaxKind
impl Clone for SyntaxKind
Source§fn clone(&self) -> SyntaxKind
fn clone(&self) -> SyntaxKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SyntaxKind
impl Debug for SyntaxKind
Source§impl Default for SyntaxKind
impl Default for SyntaxKind
Source§fn default() -> SyntaxKind
fn default() -> SyntaxKind
Source§impl Extend<SyntaxKind> for SyntaxSet
impl Extend<SyntaxKind> for SyntaxSet
Source§fn extend<T: IntoIterator<Item = SyntaxKind>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = SyntaxKind>>(&mut self, iter: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Source§impl<'_derivative_strum> From<&'_derivative_strum SyntaxKind> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum SyntaxKind> for &'static str
Source§fn from(x: &'_derivative_strum SyntaxKind) -> &'static str
fn from(x: &'_derivative_strum SyntaxKind) -> &'static str
Source§impl From<SyntaxKind> for &'static str
impl From<SyntaxKind> for &'static str
Source§fn from(x: SyntaxKind) -> &'static str
fn from(x: SyntaxKind) -> &'static str
Source§impl FromIterator<SyntaxKind> for SyntaxSet
impl FromIterator<SyntaxKind> for SyntaxSet
Source§fn from_iter<T: IntoIterator<Item = SyntaxKind>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = SyntaxKind>>(iter: T) -> Self
Source§impl FromStr for SyntaxKind
impl FromStr for SyntaxKind
Source§impl Hash for SyntaxKind
impl Hash for SyntaxKind
Source§impl Ord for SyntaxKind
impl Ord for SyntaxKind
Source§fn cmp(&self, other: &SyntaxKind) -> Ordering
fn cmp(&self, other: &SyntaxKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SyntaxKind
impl PartialEq for SyntaxKind
Source§impl PartialOrd for SyntaxKind
impl PartialOrd for SyntaxKind
Source§impl TryFrom<&str> for SyntaxKind
impl TryFrom<&str> for SyntaxKind
impl Copy for SyntaxKind
impl Eq for SyntaxKind
impl StructuralPartialEq for SyntaxKind
Auto Trait Implementations§
impl Freeze for SyntaxKind
impl RefUnwindSafe for SyntaxKind
impl Send for SyntaxKind
impl Sync for SyntaxKind
impl Unpin for SyntaxKind
impl UnwindSafe for SyntaxKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightBlack
.
§Example
println!("{}", value.bright_black());
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightGreen
.
§Example
println!("{}", value.bright_green());
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightYellow
.
§Example
println!("{}", value.bright_yellow());
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightMagenta
.
§Example
println!("{}", value.bright_magenta());
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightWhite
.
§Example
println!("{}", value.bright_white());
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightBlack
.
§Example
println!("{}", value.on_bright_black());
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightGreen
.
§Example
println!("{}", value.on_bright_green());
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightYellow
.
§Example
println!("{}", value.on_bright_yellow());
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightBlue
.
§Example
println!("{}", value.on_bright_blue());
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightMagenta
.
§Example
println!("{}", value.on_bright_magenta());
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightCyan
.
§Example
println!("{}", value.on_bright_cyan());
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightWhite
.
§Example
println!("{}", value.on_bright_white());
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn underline(&self) -> Painted<&T>
fn underline(&self) -> Painted<&T>
Returns self
with the
attr()
set to
Attribute::Underline
.
§Example
println!("{}", value.underline());
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Returns self
with the
attr()
set to
Attribute::RapidBlink
.
§Example
println!("{}", value.rapid_blink());
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);