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

Method NextResult

internal/sqlbuilder/batch.go:54–61  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

52// next slice of results to dst, which can mean having the IDs of all inserted
53// elements in the batch.
54func (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.
64func (b *BatchInserter) Done() {

Callers

nothing calls this directly

Implementers 1

BatchInserterinternal/sqlbuilder/batch.go

Calls 3

nextQueryMethod · 0.95
AllMethod · 0.65
IteratorMethod · 0.65

Tested by

no test coverage detected