MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / Parse

Function Parse

pkg/sql/parser/parse.go:225–228  ·  view source on GitHub ↗

Parse parses a sql statement string and returns a list of Statements.

(sql string)

Source from the content-addressed store, hash-verified

223
224// Parse parses a sql statement string and returns a list of Statements.
225func Parse(sql string) (Statements, error) {
226 var p Parser
227 return p.parseWithDepth(1, sql, defaultNakedIntType)
228}
229
230// ParseOne parses a sql statement string, ensuring that it contains only a
231// single statement, and returns that Statement. ParseOne will always

Callers 13

mainFunction · 0.92
mainFunction · 0.92
TestParse2Function · 0.92
TestParseTreeFunction · 0.92
TestParseSyntaxFunction · 0.92
TestParseErrorFunction · 0.92
TestParsePanicFunction · 0.92
TestUnimplementedSyntaxFunction · 0.92
BenchmarkParseFunction · 0.92
TestParserFunction · 0.92
ColNamesInSelectFunction · 0.92

Calls 1

parseWithDepthMethod · 0.95

Tested by 8

TestParse2Function · 0.74
TestParseTreeFunction · 0.74
TestParseSyntaxFunction · 0.74
TestParseErrorFunction · 0.74
TestParsePanicFunction · 0.74
TestUnimplementedSyntaxFunction · 0.74
BenchmarkParseFunction · 0.74
TestParserFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…