Batch returns the current SQL batch text.
()
| 141 | |
| 142 | // Batch returns the current SQL batch text. |
| 143 | func (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. |
| 152 | func (b *Batcher) Next() (Command, error) { |
no outgoing calls