MCPcopy Create free account
hub / github.com/dolthub/doltgresql / ParseWithInt

Method ParseWithInt

postgres/parser/parser/parse.go:115–117  ·  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

113// ParseWithInt parses a sql statement string and returns a list of
114// Statements. The INT token will result in the specified TInt type.
115func (p *Parser) ParseWithInt(sql string, nakedIntType *types.T) (Statements, error) {
116 return p.parseWithDepth(1, sql, nakedIntType)
117}
118
119func (p *Parser) parseOneWithDepth(depth int, sql string) (Statement, error) {
120 stmts, err := p.parseWithDepth(1, sql, defaultNakedIntType)

Callers

nothing calls this directly

Calls 1

parseWithDepthMethod · 0.95

Tested by

no test coverage detected