BatchInserter provides a helper that can be used to do massive insertions in batches.
| 7 | // BatchInserter provides a helper that can be used to do massive insertions in |
| 8 | // batches. |
| 9 | type BatchInserter struct { |
| 10 | inserter *inserter |
| 11 | size int |
| 12 | values chan []interface{} |
| 13 | err error |
| 14 | } |
| 15 | |
| 16 | func newBatchInserter(inserter *inserter, size int) *BatchInserter { |
| 17 | if size < 1 { |
nothing calls this directly
no outgoing calls
no test coverage detected