()
| 28 | } |
| 29 | |
| 30 | func (w *WriteBatch) Commit() error { |
| 31 | if w.err != nil { |
| 32 | return w.err |
| 33 | } |
| 34 | return w.db.db.Write(w.wbatch, nil) |
| 35 | } |
| 36 | |
| 37 | func (w *WriteBatch) SyncCommit() error { |
| 38 | return w.db.db.Write(w.wbatch, w.db.syncOpts) |
nothing calls this directly
no outgoing calls
no test coverage detected