MCPcopy
hub / github.com/hashicorp/go-memdb / ResultIterator

Interface ResultIterator

txn.go:725–730  ·  view source on GitHub ↗

ResultIterator is used to iterate over a list of results from a query on a table. When a ResultIterator is created from a write transaction, the results from Next will reflect a snapshot of the table at the time the ResultIterator is created. This means that calling Insert or Delete on a transactio

Source from the content-addressed store, hash-verified

723// index will be invalidated. This may result in some additional allocations if
724// the same node in the index is modified again.
725type ResultIterator interface {
726 WatchCh() <-chan struct{}
727 // Next returns the next result from the iterator. If there are no more results
728 // nil is returned.
729 Next() interface{}
730}
731
732// Get is used to construct a ResultIterator over all the rows that match the
733// given constraints of an index. The index values must match exactly (this

Callers 10

WatchChMethod · 0.65
TestWatchUpdateFunction · 0.65
NextMethod · 0.65
DeletePrefixMethod · 0.65
DeleteAllMethod · 0.65
FirstWatchMethod · 0.65
NextMethod · 0.65
TestMemDB_IsolationFunction · 0.65
TestTxn_InsertGet_SimpleFunction · 0.65

Implementers 3

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…