Пример #1
0
// Clear removes all the enqueued Put and Deletes in the WriteBatch.
func (w *WriteBatch) Clear() {
	C.leveldb_writebatch_clear(w.wbatch)
}
Пример #2
0
func (w *WriteBatch) Rollback() error {
	C.leveldb_writebatch_clear(w.wbatch)

	return nil
}
Пример #3
0
func (w *WriteBatch) Rollback() {
	C.leveldb_writebatch_clear(w.wbatch)
}