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

Method NewWriteBatch

driver/hybriddb/db.go:273–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

271}
272
273func (db *DB) NewWriteBatch() driver.IWriteBatch {
274 wb := &WriteBatch{
275 db: db,
276 wbatch: new(leveldb.Batch),
277 }
278 return wb
279}
280
281func (db *DB) NewIterator() driver.IIterator {
282 db.mu.RLock()

Callers 8

TestWriteBatch_RollbackFunction · 0.45
TestWriteBatch_CloseFunction · 0.45
TestWriteBatch_DataFunction · 0.45
TestDB_WriteBatchFunction · 0.45

Calls

no outgoing calls

Tested by 8

TestWriteBatch_RollbackFunction · 0.36
TestWriteBatch_CloseFunction · 0.36
TestWriteBatch_DataFunction · 0.36
TestDB_WriteBatchFunction · 0.36