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

Method Parse

pkg/sql/plpgsql/parser/parse.go:48–50  ·  view source on GitHub ↗

Parse parses the sql and returns a list of statements.

(sql string)

Source from the content-addressed store, hash-verified

46
47// Parse parses the sql and returns a list of statements.
48func (p *Parser) Parse(sql string) (statements.PLpgStatement, error) {
49 return p.parseWithDepth(1, sql, defaultNakedIntType)
50}
51
52func (p *Parser) scanFnBlock() (sql string, tokens []plpgsqlSymType, done bool) {
53 var lval plpgsqlSymType

Callers

nothing calls this directly

Calls 1

parseWithDepthMethod · 0.95

Tested by

no test coverage detected