Versions in this module Expand all Collapse all v0 v0.1.1 May 14, 2021 Changes in this version + const Comma + const EndBrace + const EndBracket + const EndParenthesis + const NewLine + const SingleQuote + const StartBrace + const StartBracket + const StartParenthesis + var EndOfAndGroup = []TokenType + var EndOfCase = []TokenType + var EndOfDelete = []TokenType + var EndOfFrom = []TokenType + var EndOfFunction = []TokenType + var EndOfGroupBy = []TokenType + var EndOfHaving = []TokenType + var EndOfInsert = []TokenType + var EndOfJoin = []TokenType + var EndOfLimitClause = []TokenType + var EndOfLock = []TokenType + var EndOfOrGroup = []TokenType + var EndOfOrderBy = []TokenType + var EndOfParenthesis = []TokenType + var EndOfReturning = []TokenType + var EndOfSelect = []TokenType + var EndOfSet = []TokenType + var EndOfTieClause = []TokenType + var EndOfTypeCast = []TokenType + var EndOfUpdate = []TokenType + var EndOfValues = []TokenType + var EndOfWhere = []TokenType + var EndOfWith = []TokenType + var TokenTypeOfLimitClause = []TokenType + var TokenTypeOfTieClause = []TokenType + var TokenTypesOfGroupMaker = []TokenType + var TokenTypesOfJoinMaker = []TokenType + type Token struct + Type TokenType + Value string + func (t Token) IncrementIndentLevel(lev int) + func (t Token) IsJoinStart() bool + func (t Token) IsKeyWordInSelect() bool + func (t Token) IsLimitClauseStart() bool + func (t Token) IsNeedNewLineBefore() bool + func (t Token) IsTieClauseStart() bool + func (t Token) Reindent(buf *bytes.Buffer) error + type TokenType int + const ALL + const AND + const ANDGROUP + const AS + const ASC + const AT + const BETWEEN + const BY + const CASE + const COLLATE + const COMMA + const CROSS + const DELETE + const DESC + const DISTINCT + const DISTINCTROW + const DO + const ELSE + const END + const ENDBRACE + const ENDBRACKET + const ENDPARENTHESIS + const EOF + const EXCEPT + const EXISTS + const FETCH + const FILTER + const FIRST + const FOR + const FROM + const FUNCTION + const GROUP + const HAVING + const IDENT + const IN + const INNER + const INSERT + const INTERSECT + const INTERVAL + const INTO + const IS + const JOIN + const LAST + const LEFT + const LIKE + const LIMIT + const LOCK + const NATURAL + const NEWLINE + const NOT + const NULL + const NULLS + const OFFSET + const ON + const OR + const ORDER + const ORGROUP + const OUTER + const OVER + const OVERLAPS + const QUOTEAREA + const RETURNING + const RIGHT + const ROWS + const SELECT + const SET + const STARTBRACE + const STARTBRACKET + const STARTPARENTHESIS + const STRING + const SURROUNDING + const THEN + const TYPE + const UNION + const UPDATE + const USING + const VALUES + const WHEN + const WHERE + const WITH + const WITHIN + const WS + const ZONE + type Tokenizer struct + func NewTokenizer(src string) *Tokenizer + func (t *Tokenizer) GetTokens() ([]Token, error) + func (t *Tokenizer) Tokenize() ([]Token, error)