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

Function Parse

pkg/sql/parser/parse.go:232–234  ·  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

230
231// Parse parses a sql statement string and returns a list of Statements.
232func Parse(sql string) (statements.Statements, error) {
233 return ParseWithInt(sql, defaultNakedIntType)
234}
235
236// ParseWithInt parses a sql statement string and returns a list of
237// Statements. The INT token will result in the specified TInt type.

Callers 2

ParseMethod · 0.92
RunShowSyntaxFunction · 0.70

Calls 1

ParseWithIntFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…