Esempio n. 1
0
// Clear removes all the enqueued Put and Deletes in the WriteBatch.
func (w *WriteBatch) Clear() {
	C.leveldb_writebatch_clear(w.wbatch)
}
Esempio n. 2
0
func (w *WriteBatch) Rollback() error {
	C.leveldb_writebatch_clear(w.wbatch)

	return nil
}
Esempio n. 3
0
func (w *WriteBatch) Rollback() {
	C.leveldb_writebatch_clear(w.wbatch)
}