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

Function ParseOneRetainComments

pkg/sql/parser/parse.go:255–258  ·  view source on GitHub ↗

ParseOneRetainComments is similar to ParseOne, but it retains scanned comments in the returned statement's Comment field.

(sql string)

Source from the content-addressed store, hash-verified

253// ParseOneRetainComments is similar to ParseOne, but it retains scanned
254// comments in the returned statement's Comment field.
255func ParseOneRetainComments(sql string) (statements.Statement[tree.Statement], error) {
256 var p Parser
257 return p.parseOneWithInt(sql, defaultNakedIntType, retainComments)
258}
259
260// ParseOneWithInt is similar to ParseOn but interprets the INT and SERIAL
261// types as the provided integer type.

Callers

nothing calls this directly

Calls 1

parseOneWithIntMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…