MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / Release

Method Release

pkg/sql/parser/parser.go:512–519  ·  view source on GitHub ↗

Release releases any resources held by the parser

()

Source from the content-addressed store, hash-verified

510
511// Release releases any resources held by the parser
512func (p *Parser) Release() {
513 // Reset internal state to avoid memory leaks
514 p.tokens = nil
515 p.currentPos = 0
516 p.currentToken = models.TokenWithSpan{}
517 p.depth = 0
518 p.ctx = nil
519}
520
521// parseStatement parses a single SQL statement using O(1) Type-based dispatch.
522//

Callers 15

LintStringMethod · 0.95
makeCtxFunction · 0.95
makeCtxFunction · 0.95
makeContextFunction · 0.95
testSQLFileFunction · 0.95
parseSQLHelperFunction · 0.95
parseTokensHelperFunction · 0.95
benchmarkWideSelectFunction · 0.95

Calls

no outgoing calls

Tested by 15

makeCtxFunction · 0.76
makeCtxFunction · 0.76
makeContextFunction · 0.76
testSQLFileFunction · 0.76
parseSQLHelperFunction · 0.76
parseTokensHelperFunction · 0.76
benchmarkWideSelectFunction · 0.76