sqlparser

package
v0.11.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpToken

func DumpToken(token *sqllexer.Token) string

func IsIdentifierLikeToken

func IsIdentifierLikeToken(t *sqllexer.Token) bool

func PrintTokens

func PrintTokens(tokens []*sqllexer.Token) string

func ScanAllTokens

func ScanAllTokens(lexer *sqllexer.Lexer) []*sqllexer.Token

func SplitTokensIntoStatements

func SplitTokensIntoStatements(tokens []*sqllexer.Token) [][]*sqllexer.Token

func TokenName

func TokenName(tokenType sqllexer.TokenType) string

Types

type BaseParser

type BaseParser struct {
	Tokens []*sqllexer.Token
	Index  int
}

func (*BaseParser) ExpectToken

func (p *BaseParser) ExpectToken(token sqllexer.Token) error

func (*BaseParser) ParseIdentifier

func (p *BaseParser) ParseIdentifier() (string, error)

func (*BaseParser) ParseToken

func (p *BaseParser) ParseToken(token sqllexer.Token) bool

func (*BaseParser) PeekToken

func (p *BaseParser) PeekToken() (int, *sqllexer.Token)

Jump to

Keyboard shortcuts

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