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

Method ReadSqlExpr

pkg/sql/plpgsql/parser/lexer.go:420–428  ·  view source on GitHub ↗
(
	terminator1 int, terminators ...int,
)

Source from the content-addressed store, hash-verified

418}
419
420func (l *lexer) ReadSqlExpr(
421 terminator1 int, terminators ...int,
422) (sqlStr string, terminatorMet int, err error) {
423 var startPos, endPos int
424 startPos, endPos, terminatorMet, err = l.readSQLConstruct(
425 true /* isExpr */, false /* allowEmpty */, terminator1, terminators...,
426 )
427 return l.getStr(startPos, endPos), terminatorMet, err
428}
429
430func (l *lexer) ReadSqlStatement(
431 terminator1 int, terminators ...int,

Callers 3

ParseMethod · 0.80

Calls 2

readSQLConstructMethod · 0.95
getStrMethod · 0.95

Tested by

no test coverage detected