MCPcopy Index your code
hub / github.com/bytebase/bytebase / Batch

Method Batch

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

Batch returns the current SQL batch text.

()

Source from the content-addressed store, hash-verified

141
142// Batch returns the current SQL batch text.
143func (b *Batcher) Batch() *Batch {
144 return &Batch{
145 Text: string(b.buffer),
146 Start: b.beginByteOffset,
147 End: b.beginByteOffset + len(b.buffer),
148 }
149}
150
151// Next returns the next command in the batch.
152func (b *Batcher) Next() (Command, error) {

Callers 4

getBatchResultsFunction · 0.95
QueryConnMethod · 0.95

Calls

no outgoing calls

Tested by 1

getBatchResultsFunction · 0.76