{"modulePath":"github.com/getsynq/dwhsupport","version":"v0.28.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sqlparser\n\n## Functions\n\n```go\nfunc DumpToken(token *sqllexer.Token) string\n```\n\n```go\nfunc IsIdentifierLikeToken(t *sqllexer.Token) bool\n```\n\n```go\nfunc PrintTokens(tokens []*sqllexer.Token) string\n```\n\n```go\nfunc ScanAllTokens(lexer *sqllexer.Lexer) []*sqllexer.Token\n```\n\n```go\nfunc SplitTokensIntoStatements(tokens []*sqllexer.Token) [][]*sqllexer.Token\n```\n\n```go\nfunc TokenName(tokenType sqllexer.TokenType) string\n```\n\n## Types\n\n```go\ntype BaseParser struct {\n\tTokens []*sqllexer.Token\n\tIndex  int\n}\n```\n\n```go\nfunc (p *BaseParser) ExpectToken(token sqllexer.Token) error\n```\n\n```go\nfunc (p *BaseParser) ParseIdentifier() (string, error)\n```\nParseIdentifier reads the name at the parser's position: the next identifier-like token, joined with the identifier-like tokens that follow it directly. A space or a comment ends the name, so the words after it (\\`PRODUCTS cluster by (...)\\`, \\`STREAM on table T\\`) are not read into it, except inside a quoted part: the lexer splits \\`DB.\"my schema\".T\\` at the space when the name does not start with the quote.\n\n```go\nfunc (p *BaseParser) ParseToken(token sqllexer.Token) bool\n```\n\n```go\nfunc (p *BaseParser) PeekToken() (int, *sqllexer.Token)\n```\n\n","path":"github.com/getsynq/dwhsupport/sqlparser","name":"sqlparser","synopsis":"","isRedistributable":true}
