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

Function NewParser

cmd/gosqlx/cmd/parser_cmd.go:57–63  ·  view source on GitHub ↗

NewParser creates a new Parser with the given options

(out, err io.Writer, opts CLIParserOptions)

Source from the content-addressed store, hash-verified

55
56// NewParser creates a new Parser with the given options
57func NewParser(out, err io.Writer, opts CLIParserOptions) *Parser {
58 return &Parser{
59 Out: out,
60 Err: err,
61 Opts: opts,
62 }
63}
64
65// Parse parses the given SQL input (file or direct SQL)
66func (p *Parser) Parse(input string) (*ParserResult, error) {

Callers 10

TestParser_ParseFunction · 0.70
TestParser_DisplayTokensFunction · 0.70
TestParser_DisplayTreeFunction · 0.70
TestParser_ComplexQueryFunction · 0.70
TestConvertStatementFunction · 0.70
parseRunFunction · 0.70
parseFromStdinFunction · 0.70

Calls

no outgoing calls

Tested by 8

TestParser_ParseFunction · 0.56
TestParser_DisplayTokensFunction · 0.56
TestParser_DisplayTreeFunction · 0.56
TestParser_ComplexQueryFunction · 0.56
TestConvertStatementFunction · 0.56