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

Method init

pkg/sql/parser/scan.go:46–51  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

44}
45
46func (s *scanner) init(str string) {
47 s.in = str
48 s.pos = 0
49 // Preallocate some buffer space for identifiers etc.
50 s.bytesPrealloc = make([]byte, len(str))
51}
52
53// cleanup is used to avoid holding on to memory unnecessarily (for the cases
54// where we reuse a scanner).

Callers 1

makeScannerFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected