MCPcopy Create free account
hub / github.com/bytebase/bytebase / Reset

Method Reset

backend/plugin/parser/tsql/batch/batch.go:292–301  ·  view source on GitHub ↗

Reset clears the current batch text and replaces it with new runes.

(r []rune)

Source from the content-addressed store, hash-verified

290
291// Reset clears the current batch text and replaces it with new runes.
292func (b *Batcher) Reset(r []rune) {
293 b.buffer, b.length = nil, 0
294 b.quote = 0
295 b.comment = false
296 if r != nil {
297 b.raw, b.rawLen = r, len(r)
298 } else {
299 b.rawLen = 0
300 }
301}

Callers 11

getBatchResultsFunction · 0.95
QueryConnMethod · 0.95
splitDottedIdentifierFunction · 0.45
splitMultipartIdentifierFunction · 0.45
splitTopLevelCSVFunction · 0.45
splitByGOFunction · 0.45
wtSplitQualifiedNameFunction · 0.45
splitSQLStatementsFunction · 0.45
splitStatementFunction · 0.45

Calls

no outgoing calls

Tested by 3

getBatchResultsFunction · 0.76
splitByGOFunction · 0.36
splitSQLStatementsFunction · 0.36