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

Method Commit

driver/hybriddb/write_batch.go:20–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20func (w *WriteBatch) Commit() error {
21 return w.db.db.Write(w.wbatch, nil)
22}
23
24func (w *WriteBatch) SyncCommit() error {
25 return w.db.db.Write(w.wbatch, w.db.syncOpts)

Callers 7

TestWriteBatch_RollbackFunction · 0.95
TestWriteBatch_CloseFunction · 0.95
TestWriteBatch_DataFunction · 0.95
TestDB_WriteBatchFunction · 0.95

Calls

no outgoing calls

Tested by 7

TestWriteBatch_RollbackFunction · 0.76
TestWriteBatch_CloseFunction · 0.76
TestWriteBatch_DataFunction · 0.76
TestDB_WriteBatchFunction · 0.76