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

Method ParseWithInt

pkg/sql/parser/parse.go:104–106  ·  view source on GitHub ↗

ParseWithInt parses a sql statement string and returns a list of Statements. The INT token will result in the specified TInt type.

(sql string, nakedIntType *types.T)

Source from the content-addressed store, hash-verified

102// ParseWithInt parses a sql statement string and returns a list of
103// Statements. The INT token will result in the specified TInt type.
104func (p *Parser) ParseWithInt(sql string, nakedIntType *types.T) (Statements, error) {
105 return p.parseWithDepth(1, sql, nakedIntType)
106}
107
108func (p *Parser) parseOneWithDepth(depth int, sql string) (Statement, error) {
109 stmts, err := p.parseWithDepth(1, sql, defaultNakedIntType)

Callers

nothing calls this directly

Calls 1

parseWithDepthMethod · 0.95

Tested by

no test coverage detected