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

Method Parse

pkg/sql/parser/parse.go:65–67  ·  view source on GitHub ↗

Parse parses the sql and returns a list of statements.

(sql string)

Source from the content-addressed store, hash-verified

63
64// Parse parses the sql and returns a list of statements.
65func (p *Parser) Parse(sql string) (statements.Statements, error) {
66 return p.parseWithDepth(1, sql, defaultNakedIntType, discardComments)
67}
68
69// ParseWithInt parses a sql statement string and returns a list of
70// Statements. The INT token will result in the specified TInt type.

Callers

nothing calls this directly

Calls 1

parseWithDepthMethod · 0.95

Tested by

no test coverage detected