MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / NewParser

Function NewParser

pkg/sql/parser/parser.go:812–818  ·  view source on GitHub ↗

NewParser creates a new parser with optional configuration.

(opts ...ParserOption)

Source from the content-addressed store, hash-verified

810
811// NewParser creates a new parser with optional configuration.
812func NewParser(opts ...ParserOption) *Parser {
813 p := &Parser{}
814 for _, opt := range opts {
815 opt(p)
816 }
817 return p
818}
819
820// ApplyOptions applies parser options to configure behavior.
821func (p *Parser) ApplyOptions(opts ...ParserOption) {

Callers 15

LintStringMethod · 0.92
makeCtxFunction · 0.92
makeCtxFunction · 0.92
makeContextFunction · 0.92
testSQLFileFunction · 0.92
parseSQLFunction · 0.92

Calls

no outgoing calls

Tested by 15

makeCtxFunction · 0.74
makeCtxFunction · 0.74
makeContextFunction · 0.74
testSQLFileFunction · 0.74
parseSQLFunction · 0.74