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

Method Parse

pkg/sql/parser/parse.go:98–100  ·  view source on GitHub ↗

Parse parses the sql and returns a list of statements.

(sql string)

Source from the content-addressed store, hash-verified

96
97// Parse parses the sql and returns a list of statements.
98func (p *Parser) Parse(sql string) (Statements, error) {
99 return p.parseWithDepth(1, sql, defaultNakedIntType)
100}
101
102// ParseWithInt parses a sql statement string and returns a list of
103// Statements. The INT token will result in the specified TInt type.

Callers 3

TestParseFunction · 0.95
TestParseSQLFunction · 0.95
TestParseNumPlaceholdersFunction · 0.95

Calls 1

parseWithDepthMethod · 0.95

Tested by 3

TestParseFunction · 0.76
TestParseSQLFunction · 0.76
TestParseNumPlaceholdersFunction · 0.76