MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Close

Method Close

driver/hybriddb/iterator.go:19–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19func (it *Iterator) Close() error {
20 if it.it != nil {
21 it.it.Release()
22 it.it = nil
23 }
24 return nil
25}
26
27func (it *Iterator) Valid() bool {
28 return it.it.Valid()

Callers 5

TestIteratorFunction · 0.95
TestIterator_EmptyDBFunction · 0.95
TestIterator_CloseFunction · 0.95
TestDB_IteratorFunction · 0.95
TestSnapshot_IteratorFunction · 0.95

Calls

no outgoing calls

Tested by 5

TestIteratorFunction · 0.76
TestIterator_EmptyDBFunction · 0.76
TestIterator_CloseFunction · 0.76
TestDB_IteratorFunction · 0.76
TestSnapshot_IteratorFunction · 0.76