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

Method NewIterator

driver/badger/db.go:85–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83}
84
85func (db *DB) NewIterator() driver.IIterator {
86 tnx := db.db.NewTransaction(false)
87 opts := db.iteratorOpts
88 opts.PrefetchSize = 100 // Optimized prefetch
89 it := &Iterator{
90 db: db.db,
91 it: tnx.NewIterator(opts),
92 txn: tnx,
93 }
94 return it
95}
96
97func (db *DB) NewSnapshot() (driver.ISnapshot, error) {
98 s := &Snapshot{

Callers 2

PrevMethod · 0.45
LastMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected