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

Method init

pkg/sql/parser/lexer.go:48–58  ·  view source on GitHub ↗
(sql string, tokens []sqlSymType, nakedIntType *types.T)

Source from the content-addressed store, hash-verified

46}
47
48func (l *lexer) init(sql string, tokens []sqlSymType, nakedIntType *types.T) {
49 l.in = sql
50 l.tokens = tokens
51 l.lastPos = -1
52 l.stmt = nil
53 l.numPlaceholders = 0
54 l.numAnnotations = 0
55 l.lastError = nil
56
57 l.nakedIntType = nakedIntType
58}
59
60// cleanup is used to avoid holding on to memory unnecessarily (for the cases
61// where we reuse a scanner).

Callers 3

parseWithDepthMethod · 0.45
parseMethod · 0.45
TestScanOneStmtFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestScanOneStmtFunction · 0.36