MCPcopy
hub / github.com/cayleygraph/cayley / NextPath

Method NextPath

graph/sql/iterator.go:399–411  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

397}
398
399func (it *iteratorContains) NextPath(ctx context.Context) bool {
400 if it.err != nil {
401 return false
402 }
403 if !it.query.nextPath {
404 return false
405 }
406 if !it.nextPathRows.Next() {
407 it.err = it.nextPathRows.Err()
408 return false
409 }
410 return it.scanValue(it.nextPathRows)
411}
412
413func (it *iteratorContains) Close() error {
414 if it.nextPathRows != nil {

Callers

nothing calls this directly

Calls 3

scanValueMethod · 0.80
NextMethod · 0.65
ErrMethod · 0.65

Tested by

no test coverage detected