MCPcopy Index your code
hub / github.com/upper/db / BatchInserter

Struct BatchInserter

internal/sqlbuilder/batch.go:9–14  ·  view source on GitHub ↗

BatchInserter provides a helper that can be used to do massive insertions in batches.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected