예제 #1
0
파일: batch.go 프로젝트: janelia-flyem/go
// Clear removes all the enqueued Put and Deletes in the WriteBatch.
func (w *WriteBatch) Clear() {
	C.leveldb_writebatch_clear(w.wbatch)
}
예제 #2
0
파일: batch.go 프로젝트: malloc-fi/vantaa
func (w *WriteBatch) Rollback() error {
	C.leveldb_writebatch_clear(w.wbatch)

	return nil
}
예제 #3
0
파일: batch.go 프로젝트: Gohan/ledisdb
func (w *WriteBatch) Rollback() {
	C.leveldb_writebatch_clear(w.wbatch)
}