Versions in this module Expand all Collapse all v1 v1.0.6 Oct 23, 2026 v1.0.4 Oct 22, 2026 Changes in this version + func FormatScript(sql, dialect string) (string, error) + type ParseDiagnostic struct + End int + Kind string + Label string + Start int + StatementKind string + StatementStart int + type ScriptResult struct + Complete bool + Diagnostics []ParseDiagnostic + Tree *Expression + func ParseScript(sql, dialect string) (ScriptResult, error) type UnsupportedError + End int + HasRange bool + Start int v1.0.3 Oct 18, 2026 v1.0.2 Oct 18, 2026 Changes in this version type Expression + Meta map[string]any type ParserTables + AggFunctionSuffixes []string + AggFunctions map[string]struct{} + KeepsFunctionCase bool + KeepsOriginalName map[string]struct{} + NeverNullableTypes map[string]struct{} + NullableTemplate string + QuantifierComparisonRewritten bool + SetOpDistinctByDefault map[string]string + StandaloneUniqueBefore map[string]struct{} v1.0.1 Oct 18, 2026 v1.0.0 Oct 15, 2026 Changes in this version + var ErrGenerate = errors.New("sqlglot-go: cannot generate SQL") + var ErrMultipleStatements = errors.New("sqlglot-go: more than one statement") + var ErrNotAQuery = errors.New("sqlglot-go: not a query") + var ErrUnsupported = errors.New("sqlglot-go: unsupported statement") + func AnnotateFully(e *Expression, dialect string) bool + func Anonymize(sql, dialect string) string + func CanonicalSQL(sql, dialect string) (string, error) + func Dialects() []string + func Format(sql, dialect string) (string, error) + func FunctionName(e *Expression, dialect string) (string, bool) + func Generate(e *Expression, dialect string) (string, error) + func IsIntegerType(t *Expression) bool + func IsWrite(e *Expression) bool + func SplitBatches(script, dialect string) ([]string, error) + type Arg struct + Key string + Value any + type BooleanSQL struct + FalseCondition string + FalseValue string + TrueCondition string + TrueValue string + type ClassTrigger struct + Classes []string + Index int + type CompositeTypeSQL struct + ArraySizedTemplate string + ArrayTemplate string + MapTemplate string + StructClose string + StructFieldSep string + StructOpen string + type Config struct + ByteStringEscapes set + CommandPrefixTokens ttset + Commands ttset + Comments map[string]string + EscapeFollowChars set + FormatStrings map[string]FormatString + HasBitStrings bool + HasHexStrings bool + HeredocStringAlternative TokenType + HeredocTagIsIdentifier bool + HintStart string + IdentifierEscapes set + Identifiers map[string]string + IdentifiersCanStartWithDigit bool + Keywords map[string]TokenType + Name string + NestedComments bool + NumbersCanBeUnderscoreSeparated bool + NumbersCanHaveDecimals bool + NumericLiterals map[string]string + Quotes map[string]string + SingleTokens map[string]TokenType + StringEscapePreferred string + StringEscapes set + StringEscapesAllowedInRawStrings bool + Tables *ParserTables + TokensPrecedingHint ttset + UnescapedSequences map[string]string + VarSingleTokens set + func ConfigFor(dialect string) (*Config, bool) + type DataTypeKind string + type DataTypeSpec struct + Kind string + Length *int + Max bool + Name string + Precision *int + Scale *int + func DataTypeSpecOf(e *Expression, dialect string) (DataTypeSpec, error) + func (s DataTypeSpec) String() string + type DiffEdit struct + Expression *Expression + Kind EditKind + Source *Expression + Target *Expression + func Diff(source, target *Expression, dialect string, deltaOnly bool) []DiffEdit + type EditKind string + const EditInsert + const EditKeep + const EditMove + const EditRemove + const EditUpdate + type Expression struct + Args map[string]any + Class string + Keys []string + Parent *Expression + Type *Expression + func Annotate(e *Expression, dialect string) *Expression + func ApplyIndexOffset(this *Expression, items []*Expression, offset int, dialect string) ([]*Expression, bool) + func New(class string, args ...Arg) *Expression + func ParseDataType(s, dialect string) (*Expression, error) + func ParseJSONPath(path string) (*Expression, error) + func ParseOne(sql, dialect string) (*Expression, error) + func Simplify(e *Expression, dialect string) *Expression + func (e *Expression) Append(key string, child *Expression) + func (e *Expression) Copy() *Expression + func (e *Expression) Dump() []map[string]any + func (e *Expression) DumpJSON() []byte + func (e *Expression) Equal(other *Expression) bool + func (e *Expression) FindAll(classes ...string) []*Expression + func (e *Expression) Name() string + func (e *Expression) Set(key string, value any) + func (e *Expression) This() *Expression + func (e *Expression) Walk(fn func(*Expression) bool) + type FormatString struct + End string + Type TokenType + type FuncArg struct + Const any + Index int + Key string + Nested string + NestedAnnot *FuncArg + NestedArgs []FuncArg + NestedExcept []string + VarLen bool + Wrap string + WrapArgs []FuncConst + type FuncConst struct + Key string + Value any + type FuncSQL struct + Consts []FuncConst + Keys []string + MinArgs int + Name string + NoParens bool + type FuncSpec struct + Annot *FuncArg + Args []FuncArg + Class string + type GenerateError struct + What string + func (e *GenerateError) Error() string + func (e *GenerateError) Is(target error) bool + type JSONPathFunc struct + Class string + Consts []FuncConst + Fold bool + IndexShift int + IntSubscripts bool + KeepsTail bool + RootDefault bool + type JSONPathSQL struct + Close string + EscapesQuote bool + Form string + Key string + KeyAfter string + Open string + PlainForm string + QuotedKey string + Subscript string + type JSONPerPart struct + Call string + Chain string + type KindSpec struct + Index int + Kind string + Spec FuncSpec + type NotAQueryError struct + Kind string + func (e *NotAQueryError) Error() string + func (e *NotAQueryError) Is(target error) bool + type Param struct + Default *Expression + Name string + Output bool + ReadOnly bool + Type *Expression + type ParserTables struct + AlterAddColumnWord bool + AlterCollateIsVar bool + AlterColumnNullabilityWritten bool + AlterColumnTypeTakesNull bool + AlterColumnTypeWord string + AlterRepeatsAdd bool + AlterSetIsWrapped bool + AlterSetListIsSettings bool + AlterSetOptionWritten bool + AlterSetWrapsOptions bool + ArityKindSpecs map[string]map[int][]KindSpec + ArrayClose string + ArrayOpen string + AutoIncrementSQL string + BareBeginIsATransaction bool + BareJoinIsOnTrue bool + BareNameIsColumn map[string]struct{} + BareProcedureWrapper string + BareSampleCountIsPercent bool + BinaryRangeOps map[TokenType]string + BinaryRangeSQL map[string]string + BinarySQL map[string]string + Bitwise map[TokenType]string + Boolean BooleanSQL + BracketIsRewritten bool + CallNamesTheReferenceKnows map[string]struct{} + CastCoercions map[string]map[int]map[string]map[string]string + CastElidedAt map[string]map[string][]string + CastElidedOver map[string][]string + CastIdempotentTypes map[string]map[string][]string + CastSensitiveArgs map[string]map[int][]string + CastSensitiveTypes map[string]map[int]map[string][]string + ClassSensitiveArgs map[string][]ClassTrigger + CoercesBooleans bool + ColonLambdaRead bool + ColonLambdaWrite string + ColumnCommentWritten bool + ColumnDefaultAfterEquals bool + CommaUnnestJoins bool + Comparison map[TokenType]string + CompositeType CompositeTypeSQL + ComputedColumnSpelling string + ComputedKeepsType bool + ConcatAsDPipe bool + ConditionCoercion string + Conjunction map[TokenType]string + ConvertBuildsConvert bool + CopyIntoWritten bool + CopyParamsAreCSV bool + CopyParamsNeedEQ bool + CopyParamsWrapped bool + CopyVarlenOptions map[string]struct{} + CreatableKindNames map[string]string + CreatableTokens map[TokenType]struct{} + CreateExistsWritten map[string]bool + CreateFlagWords map[string]string + CreateKinds map[string]struct{} + CreateOrFlags map[string]string + CreateProperties map[string]string + DPipeIsStringConcat bool + DateDeltaIsAnOperator bool + DatePartMapping map[string]string + DeclareAssignment string + DefaultNullsFirstAsc bool + DefaultNullsFirstDesc bool + DefaultSampleMethod string + DefaultTimeFormat string + DefaultTypeParams map[string][]string + DefaultsUnsizedCharTypes bool + Disjunction map[TokenType]string + DropsTypeParams map[string]bool + DropsZeroArgs map[string]map[int][]string + EliminatesDistinctOn bool + EndCommits bool + EnumTypeSQL string + Equality map[TokenType]string + ExecuteBuildsExecute bool + Exponent map[TokenType]string + Factor map[TokenType]string + FileFormatSQL string + ForClauseOptions map[string]map[string][]string + FormatSpellings map[string]string + FormatTimeMapping map[string]string + FullFormatTimeMapping map[string]string + FuncTokens map[TokenType]struct{} + FunctionAsTableRead bool + FunctionPropertiesWritten bool + FunctionReturnAs bool + FunctionReturnsPlace map[string]string + FunctionSQL map[string][]FuncSQL + FunctionWrapsTableBody bool + Functions map[string]FuncSpec + FunctionsByArity map[string]map[int]FuncSpec + FunctionsWithAliasedArgs map[string]struct{} + GeneratedExpressionIsComputed bool + GeneratedStoredSetsPersisted bool + GroupConcatOrder string + HasDistinctArrayConstructors bool + HasListConstructor bool + HoistsInsertWith bool + IDVarTokens map[TokenType]struct{} + IdentifierEnd string + IdentifierStart string + IdentityShortSQL string + IdentityWidensType bool + IdentityWritten bool + IfIsAStatement bool + IgnoreNullsDropped map[string]struct{} + IgnoreNullsInFunc bool + IgnoreNullsWindowFuncs map[string]struct{} + IndexOffset int + IndexOnWord string + IntervalAllowsPluralForm bool + IntervalUnitAliases map[string]string + IntervalUnitInsideString bool + InvalidFuncNameTokens map[TokenType]struct{} + InverseTimeMapping map[string]string + IsNotNullWrapsInNot bool + JSONArrowOnlyJSONTypes bool + JSONArrowSetsScalarOnly bool + JSONArrowTypesWithoutPath bool + JSONExtractNeedsParens map[string]bool + JSONExtractSQL map[string]string + JSONExtractTwiceSQL map[string]string + JSONKeyValueSQL string + JSONOperatorSQL map[string]string + JSONOperatorsAtBitwise map[TokenType]string + JSONPath JSONPathSQL + JSONPathByClass map[string]JSONPathSQL + JSONPathFunctions map[string]JSONPathFunc + JSONPathIsParsed bool + JSONPerPartSQL map[string]JSONPerPart + JoinHints map[string]struct{} + JoinKinds map[TokenType]struct{} + JoinMethods map[TokenType]struct{} + JoinSides map[TokenType]struct{} + JoinsHaveEqualPrecedence bool + KeepsUnnamedWrapped map[string]struct{} + KeyConstraintOptions map[string][]string + LikeInsideSchema bool + LimitAllMeansNoLimit bool + LimitFetch string + LimitIsTop bool + LimitOnlyLiterals bool + ListedRangeOps map[TokenType]struct{} + MapBraceLiteral bool + MergeWithoutTarget bool + ModifiersAttachedToSetOp bool + MultiArgDistinct bool + NamedFunctions map[string]struct{} + NestedTypeKinds map[string]bool + NoParenFunctionClasses map[TokenType]string + NoParenFunctionNames map[string]struct{} + NoParenFunctions map[TokenType]struct{} + NormalizeNotNull bool + NormalizeQuoted string + NormalizeUnquoted string + NullOrdering string + OffsetRowsWord string + OpclassFollowTokens map[TokenType]struct{} + OpclassFollowWords map[string]struct{} + ParameterModePrefix bool + ParameterModeWords map[string]string + PartitionSQL string + PercentileClasses map[string]struct{} + PivotColumnNaming string + PivotIdentifiesStrings bool + PivotPrefixesColumns bool + Placeholder PlaceholderSQL + PositionalColumns bool + PrefixAlias bool + PrefixCalls map[string]string + PrimaryKeyMembersOrdered bool + ProcedureWithOptions map[string]string + ProjectionEqualsIsAlias bool + PropertyLocation map[string]string + PropertyNameQuoted bool + PropertySpecs map[string]PropertySpec + QualifiesDerivedOutputs bool + QuantifierQuerySQL map[string]string + QuantifierSQL map[string]string + QuantifierWrapsSubquery map[string]bool + QueryHintOptions map[string][][]string + QueryHintOptionsNeedEqual map[string]struct{} + RangeTokens map[TokenType]struct{} + RegexpFlagArgs map[string]string + RegexpFlags string + RegexpFlagsNeedLiteral bool + RegexpFlagsWritten bool + RenameTarget string + ReservedKeywords map[string]bool + ReservedTokens map[TokenType]struct{} + ReturnWord string + ReturningEnd bool + ReturningWord string + RewritesCreateAsSelect bool + RewritesSerialToIdentity bool + SafeDivision bool + SafeToEliminateDoubleNegation bool + SelectSampleWord string + SequenceOptions map[string][]string + SetItemKindWritten map[string]bool + SetItemSeparator string + SetItemVariableSeparator string + SetOpModifiers []string + SetWithoutASign bool + ShowKinds map[string]struct{} + SizedTypeSQL map[string]string + SplitPartCountsBackwards string + StarExceptWord string + StatementTokens map[TokenType]struct{} + StrictStringConcat bool + StringAliases bool + StringArgWraps map[string]map[int]string + StringClassSQL map[string]string + StringSensitiveArgs map[string][]int + StructFieldTemplate string + StructTemplate string + StructTypeKinds map[string]bool + SupportsBetweenFlags bool + SupportsColumnJoinMarks bool + SupportsCreateLike bool + SupportsFixedSizeArrays bool + SupportsImplicitUnnest bool + SupportsSingleArgConcat bool + SuppressedWriteClasses map[string]struct{} + SwappedRangeOps map[TokenType]struct{} + SyntaxFunctions map[string]struct{} + SyntaxSQL map[string][]SyntaxTemplate + TableAliasTokens map[TokenType]struct{} + TableFunctions map[string]struct{} + TableHintsWritten bool + TableSample TableSampleSQL + TableSampleWord string + TemporarySuffix map[string]string + TemporaryWritten map[string]bool + Term map[TokenType]string + TimeFormatArgs map[string][]int + TimeMapping map[string]string + TimeTypeTokens map[TokenType]struct{} + TimestampTypeTokens map[TokenType]struct{} + TransactionNameWritten bool + TransactionSavepointWritten bool + TransactionWord string + TrimPatternFirst bool + TrimTypes map[string]struct{} + TruncatesCatalog bool + TsOrDsParents map[string]struct{} + TypeDispatchFunctions map[string]TypeDispatch + TypeSQL map[string]string + TypeTokens map[TokenType]string + TypedDivision bool + TzToWithTimeZone bool + UnaryOps map[TokenType]string + UnarySQL map[string]string + UniqueConstraintWritten bool + UnitAliases map[string]map[string]string + UnpivotValueColumnsFirst bool + UserDefinedTypeIsIdentifier bool + ValidIntervalUnits map[string]struct{} + ValueDispatchFunctions map[string]ValueDispatch + ValuesFollowedByParen bool + ValuesTableWrapped bool + VariantExtractColon bool + VersionRangeSep map[string]string + ViewColumnCommentWritten bool + WithDataWritten bool + WithPropertiesPrefix string + WithinGroupAbsorbedBy map[string]bool + WithinGroupFolds map[string]struct{} + WithinGroupInside bool + WithinGroupPercentile string + WritesBooleanLiteral bool + WritesIntoUnlogged bool + WritesNullsOrdering bool + ZeroSensitiveArgs map[string]map[int][]string + ZoneAwareTimestampConstructor bool + type PlaceholderSQL struct + Anonymous string + AnonymousJDBC bool + AnonymousJDBCSQL string + AtName string + DollarName string + DollarNumber string + Named string + Parameter string + PercentAnonymous string + PercentNamed string + WidgetPlaceholder bool + type PropertySpec struct + Class string + Equals bool + Named bool + Shape string + type Routine struct + Body *Expression + Kind string + Name string + OrAlter bool + Params []Param + Returns *Expression + Schema string + func RoutineOf(e *Expression) (Routine, error) + type SyntaxTemplate struct + Bracketed []string + Keys []string + Marked []string + Required []FuncConst + Template string + type TableSampleSQL struct + Keywords string + RequiresParens bool + SeedKeyword string + SizeIsPercent bool + SizeIsRows bool + WithMethod bool + type Token struct + Col int + Comments []string + End int + Line int + Start int + Text string + Type TokenType + func Tokenize(sql, dialect string) ([]Token, error) + func (t Token) String() string + type TokenError struct + End int + Msg string + Snippet string + Start int + func (e *TokenError) Error() string + type TokenType int + const TokADJACENT + const TokAGGREGATEFUNCTION + const TokALIAS + const TokALL + const TokALTER + const TokAMP + const TokAMP_GT + const TokAMP_LT + const TokANALYZE + const TokAND + const TokANTI + const TokANY + const TokAPPLY + const TokARRAY + const TokARROW + const TokASC + const TokASOF + const TokATTACH + const TokAT_GT + const TokAT_QMARK + const TokAUTO_INCREMENT + const TokBACKSLASH + const TokBEGIN + const TokBETWEEN + const TokBIGDECIMAL + const TokBIGINT + const TokBIGNUM + const TokBIGSERIAL + const TokBINARY + const TokBIT + const TokBIT_STRING + const TokBLOB + const TokBLOCK_END + const TokBLOCK_START + const TokBOOLEAN + const TokBPCHAR + const TokBREAK + const TokBULK_COLLECT_INTO + const TokBYTE_STRING + const TokCACHE + const TokCARET + const TokCARET_AT + const TokCASE + const TokCHAR + const TokCHARACTER_SET + const TokCLUSTER_BY + const TokCOLLATE + const TokCOLON + const TokCOLON_EQ + const TokCOLON_GT + const TokCOLUMN + const TokCOLUMN_DEF + const TokCOMMA + const TokCOMMAND + const TokCOMMENT + const TokCOMMIT + const TokCONNECT_BY + const TokCONSTRAINT + const TokCOPY + const TokCREATE + const TokCROSS + const TokCUBE + const TokCURRENT_CATALOG + const TokCURRENT_DATE + const TokCURRENT_DATETIME + const TokCURRENT_ROLE + const TokCURRENT_SCHEMA + const TokCURRENT_TIME + const TokCURRENT_TIMESTAMP + const TokCURRENT_USER + const TokCURRENT_USER_ID + const TokDAMP + const TokDARROW + const TokDASH + const TokDAT + const TokDATABASE + const TokDATE + const TokDATE32 + const TokDATEMULTIRANGE + const TokDATERANGE + const TokDATETIME + const TokDATETIME2 + const TokDATETIME64 + const TokDCOLON + const TokDCOLONDOLLAR + const TokDCOLONPERCENT + const TokDCOLONQMARK + const TokDECFLOAT + const TokDECIMAL + const TokDECIMAL128 + const TokDECIMAL256 + const TokDECIMAL32 + const TokDECIMAL64 + const TokDECLARE + const TokDEFAULT + const TokDELETE + const TokDESC + const TokDESCRIBE + const TokDETACH + const TokDHASH_ARROW + const TokDICTIONARY + const TokDISTINCT + const TokDISTRIBUTE_BY + const TokDIV + const TokDOLLAR + const TokDOT + const TokDOTCARET + const TokDOTCOLON + const TokDOUBLE + const TokDPIPE + const TokDPIPE_SLASH + const TokDQMARK + const TokDROP + const TokDSTAR + const TokDYNAMIC + const TokELSE + const TokEND + const TokENUM + const TokENUM16 + const TokENUM8 + const TokEQ + const TokESCAPE + const TokEXCEPT + const TokEXCLAMATION + const TokEXECUTE + const TokEXISTS + const TokEXPORT + const TokFALSE + const TokFARROW + const TokFETCH + const TokFILE + const TokFILE_FORMAT + const TokFILTER + const TokFINAL + const TokFIRST + const TokFIXEDSTRING + const TokFLOAT + const TokFOR + const TokFORCE + const TokFOREIGN_KEY + const TokFORMAT + const TokFROM + const TokFULL + const TokFUNCTION + const TokGEOGRAPHY + const TokGEOGRAPHYPOINT + const TokGEOMETRY + const TokGET + const TokGLOB + const TokGLOBAL + const TokGRANT + const TokGROUPING_SETS + const TokGROUP_BY + const TokGT + const TokGTE + const TokHASH + const TokHASH_ARROW + const TokHASH_DASH + const TokHAVING + const TokHEREDOC_STRING + const TokHEX_STRING + const TokHINT + const TokHIVE_TOKEN_STREAM + const TokHLLSKETCH + const TokHSTORE + const TokIDENTIFIER + const TokIGNORE + const TokILIKE + const TokIMAGE + const TokIN + const TokINDEX + const TokINDEXED_BY + const TokINET + const TokINNER + const TokINOUT + const TokINSERT + const TokINSTALL + const TokINT + const TokINT128 + const TokINT256 + const TokINT4MULTIRANGE + const TokINT4RANGE + const TokINT8MULTIRANGE + const TokINT8RANGE + const TokINTEGRATION + const TokINTERSECT + const TokINTERVAL + const TokINTO + const TokINTRODUCER + const TokIPADDRESS + const TokIPPREFIX + const TokIPV4 + const TokIPV6 + const TokIRLIKE + const TokIS + const TokISNULL + const TokJOIN + const TokJOIN_MARKER + const TokJSON + const TokJSONB + const TokKEEP + const TokKEY + const TokKILL + const TokLANGUAGE + const TokLATERAL + const TokLEFT + const TokLIKE + const TokLIMIT + const TokLINESTRING + const TokLIST + const TokLLRR_ARROW + const TokLOAD + const TokLOCALTIME + const TokLOCALTIMESTAMP + const TokLOCK + const TokLONGBLOB + const TokLONGTEXT + const TokLOWCARDINALITY + const TokLR_ARROW + const TokLT + const TokLTE + const TokLT_AT + const TokL_BRACE + const TokL_BRACKET + const TokL_PAREN + const TokMAP + const TokMATCH + const TokMATCH_CONDITION + const TokMATCH_RECOGNIZE + const TokMEDIUMBLOB + const TokMEDIUMINT + const TokMEDIUMTEXT + const TokMEMBER_OF + const TokMERGE + const TokMOD + const TokMODEL + const TokMONEY + const TokMULTILINESTRING + const TokMULTIPOLYGON + const TokNAME + const TokNAMESPACE + const TokNATIONAL_STRING + const TokNATURAL + const TokNCHAR + const TokNCOLON_GT + const TokNEQ + const TokNESTED + const TokNEXT + const TokNOT + const TokNOTHING + const TokNOTNULL + const TokNULL + const TokNULLABLE + const TokNULLSAFE_EQ + const TokNUMBER + const TokNUMMULTIRANGE + const TokNUMRANGE + const TokNVARCHAR + const TokOBJECT + const TokOBJECT_IDENTIFIER + const TokOFFSET + const TokON + const TokONLY + const TokOPERATOR + const TokOPTION + const TokOR + const TokORDERED + const TokORDER_BY + const TokORDER_SIBLINGS_BY + const TokORDINALITY + const TokOUT + const TokOUTER + const TokOVER + const TokOVERLAPS + const TokOVERWRITE + const TokPACKAGE + const TokPARAMETER + const TokPARTITION + const TokPARTITION_BY + const TokPERCENT + const TokPIPE + const TokPIPE_GT + const TokPIPE_SLASH + const TokPIVOT + const TokPLACEHOLDER + const TokPLUS + const TokPOINT + const TokPOLICY + const TokPOLYGON + const TokPOOL + const TokPOSITIONAL + const TokPRAGMA + const TokPREWHERE + const TokPRIMARY_KEY + const TokPROCEDURE + const TokPROJECTION + const TokPROPERTIES + const TokPSEUDO_TYPE + const TokPUT + const TokQDCOLON + const TokQMARK_AMP + const TokQMARK_PIPE + const TokQUALIFY + const TokQUOTE + const TokRANGE + const TokRAW_STRING + const TokRECURSIVE + const TokREFERENCES + const TokREFRESH + const TokRENAME + const TokREPLACE + const TokRETURNING + const TokREVOKE + const TokRIGHT + const TokRING + const TokRLIKE + const TokROLE + const TokROLLBACK + const TokROLLUP + const TokROW + const TokROWS + const TokROWVERSION + const TokRULE + const TokR_BRACE + const TokR_BRACKET + const TokR_PAREN + const TokSCHEMA + const TokSELECT + const TokSEMANTIC_VIEW + const TokSEMI + const TokSEMICOLON + const TokSENTINEL + const TokSEPARATOR + const TokSEQUENCE + const TokSERDE_PROPERTIES + const TokSERIAL + const TokSESSION + const TokSESSION_PARAMETER + const TokSESSION_USER + const TokSET + const TokSETTINGS + const TokSHOW + const TokSIMILAR_TO + const TokSIMPLEAGGREGATEFUNCTION + const TokSINK + const TokSLASH + const TokSMALLDATETIME + const TokSMALLINT + const TokSMALLMONEY + const TokSMALLSERIAL + const TokSOME + const TokSORT_BY + const TokSOUNDS_LIKE + const TokSOURCE + const TokSPACE + const TokSQL_SECURITY + const TokSTAGE + const TokSTAR + const TokSTART_WITH + const TokSTORAGE_INTEGRATION + const TokSTRAIGHT_JOIN + const TokSTREAM + const TokSTREAMLIT + const TokSTRING + const TokSTRUCT + const TokSUMMARIZE + const TokSUPER + const TokSYSTIMESTAMP + const TokTABLE + const TokTABLE_SAMPLE + const TokTAG + const TokTDIGEST + const TokTEMPORARY + const TokTEXT + const TokTHEN + const TokTILDE + const TokTIME + const TokTIMESTAMP + const TokTIMESTAMPLTZ + const TokTIMESTAMPNTZ + const TokTIMESTAMPTZ + const TokTIMESTAMP_MS + const TokTIMESTAMP_NS + const TokTIMESTAMP_S + const TokTIMETZ + const TokTIME_NS + const TokTINYBLOB + const TokTINYINT + const TokTINYTEXT + const TokTOP + const TokTRIGGER + const TokTRUE + const TokTRUNCATE + const TokTSMULTIRANGE + const TokTSRANGE + const TokTSTZMULTIRANGE + const TokTSTZRANGE + const TokTYPE + const TokUBIGINT + const TokUDECIMAL + const TokUDOUBLE + const TokUINT + const TokUINT128 + const TokUINT256 + const TokUMEDIUMINT + const TokUNCACHE + const TokUNDROP + const TokUNICODE_STRING + const TokUNION + const TokUNIQUE + const TokUNKNOWN + const TokUNNEST + const TokUNPIVOT + const TokUPDATE + const TokURI_START + const TokUSE + const TokUSERDEFINED + const TokUSING + const TokUSMALLINT + const TokUTC_DATE + const TokUTC_TIME + const TokUTC_TIMESTAMP + const TokUTINYINT + const TokUUID + const TokVALUES + const TokVAR + const TokVARBINARY + const TokVARCHAR + const TokVARIADIC + const TokVARIANT + const TokVECTOR + const TokVIEW + const TokVOID + const TokVOLATILE + const TokVOLUME + const TokWAREHOUSE + const TokWHEN + const TokWHERE + const TokWINDOW + const TokWITH + const TokXML + const TokXOR + const TokYEAR + func TokenTypeByName(name string) (TokenType, bool) + func (t TokenType) String() string + type Tokenizer struct + func NewTokenizer(dialect string) (*Tokenizer, error) + func (t *Tokenizer) Config() *Config + func (t *Tokenizer) Tokenize(sql string) (toks []Token, err error) + type TypeDispatch struct + ByType map[string]FuncSpec + Default FuncSpec + Index int + type UnsupportedError struct + Construct string + Token string + TokenIsKeyword bool + func (e *UnsupportedError) Error() string + func (e *UnsupportedError) Is(target error) bool + func (e *UnsupportedError) Label() string + type ValueDispatch struct + ByValue map[string]FuncSpec + Default FuncSpec + Index int v0 v0.4.0-flanksource.2 Oct 15, 2026