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

Function ParseWithInt

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

236// ParseWithInt parses a sql statement string and returns a list of
237// Statements. The INT token will result in the specified TInt type.
238func ParseWithInt(sql string, nakedIntType *types.T) (statements.Statements, error) {
239 var p Parser
240 return p.parseWithDepth(1, sql, nakedIntType, discardComments)
241}
242
243// ParseOne parses a sql statement string, ensuring that it contains only a
244// single statement, and returns that Statement. ParseOne will always

Callers 1

ParseFunction · 0.85

Calls 1

parseWithDepthMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…