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

Method One

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

Source from the content-addressed store, hash-verified

470}
471
472func (iter *iterator) One(dst interface{}) error {
473 if err := iter.Err(); err != nil {
474 return err
475 }
476 defer iter.Close()
477 return iter.setErr(iter.next(dst))
478}
479
480func (iter *iterator) All(dst interface{}) error {
481 if err := iter.Err(); err != nil {

Callers

nothing calls this directly

Calls 4

ErrMethod · 0.95
CloseMethod · 0.95
setErrMethod · 0.95
nextMethod · 0.95

Tested by

no test coverage detected