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

Function NewBatcher

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

NewBatcher returns a new Batch.

(statement string)

Source from the content-addressed store, hash-verified

133
134// NewBatcher returns a new Batch.
135func NewBatcher(statement string) *Batcher {
136 scanner := newDefaultScan(statement)
137 return &Batcher{
138 read: scanner,
139 }
140}
141
142// Batch returns the current SQL batch text.
143func (b *Batcher) Batch() *Batch {

Callers 1

getBatchResultsFunction · 0.85

Calls 1

newDefaultScanFunction · 0.85

Tested by 1

getBatchResultsFunction · 0.68