NextResult is useful when using PostgreSQL and Returning(), it dumps the next slice of results to dst, which can mean having the IDs of all inserted elements in the batch.
(dst interface{})
| 52 | // next slice of results to dst, which can mean having the IDs of all inserted |
| 53 | // elements in the batch. |
| 54 | func (b *BatchInserter) NextResult(dst interface{}) bool { |
| 55 | clone := b.nextQuery() |
| 56 | if clone == nil { |
| 57 | return false |
| 58 | } |
| 59 | b.err = clone.Iterator().All(dst) |
| 60 | return (b.err == nil) |
| 61 | } |
| 62 | |
| 63 | // Done means that no more elements are going to be added. |
| 64 | func (b *BatchInserter) Done() { |
nothing calls this directly
no test coverage detected