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

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