NewBatcher returns a new Batch.
(statement string)
| 133 | |
| 134 | // NewBatcher returns a new Batch. |
| 135 | func 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. |
| 143 | func (b *Batcher) Batch() *Batch { |