parser

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepSprintIR

func DeepSprintIR(a ast.Node) string

DeepSprintIR return a pretty printed string

Types

type SQLParser

type SQLParser struct {
	// contains filtered or unexported fields
}

SQLParser - parse sql using local parser instance, not goroutine-safe

func NewSQLParser

func NewSQLParser() *SQLParser

NewSQLParser - a sql parser

func (*SQLParser) ParseOneStmt

func (s *SQLParser) ParseOneStmt(stmt string) (ast.StmtNode, error)

ParseOneStmt - parse one statement For create table statement, column flags are set.

Jump to

Keyboard shortcuts

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