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

Method All

internal/sqlbuilder/builder.go:480–492  ·  view source on GitHub ↗
(dst interface{})

Source from the content-addressed store, hash-verified

478}
479
480func (iter *iterator) All(dst interface{}) error {
481 if err := iter.Err(); err != nil {
482 return err
483 }
484 defer iter.Close()
485
486 // Fetching all results within the cursor.
487 if err := fetchRows(iter, dst); err != nil {
488 return iter.setErr(err)
489 }
490
491 return nil
492}
493
494func (iter *iterator) Err() (err error) {
495 return iter.err

Callers

nothing calls this directly

Calls 4

ErrMethod · 0.95
CloseMethod · 0.95
setErrMethod · 0.95
fetchRowsFunction · 0.85

Tested by

no test coverage detected