Documentation ¶
Overview ¶
Package parser contains the universal TDOP parser for SQL snippet.
Accepts partial SQL statements like DEFAUT values for columns. Parses a mix of all SQL dialects. Returns a parse tree of nodes from ast.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartTracing ¶
func StartTracing()
StartTracing enables parser event collect.
Use Trace.Events() to get events.
func StopTracing ¶
func StopTracing()
Types ¶
type Logger ¶
type Logger interface { // Events return the list of parse trace events. Events() []string // contains filtered or unexported methods }
Logger is the interface for the trace logger.
var Trace Logger = &voidLog{}
Trace holds the parser messages.
Use Trace.Events() []string to get events.
Click to show internal directories.
Click to hide internal directories.