Exemplo n.º 1
0
func newRocksDBBatch(parent *RocksDB) *rocksDBBatch {
	r := &rocksDBBatch{
		parent: parent,
		batch:  C.DBNewBatch(parent.rdb),
	}
	r.distinct.rocksDBBatch = r
	return r
}
Exemplo n.º 2
0
func newRocksDBBatch(parent *RocksDB, writeOnly bool) *rocksDBBatch {
	r := &rocksDBBatch{
		parent:    parent,
		batch:     C.DBNewBatch(parent.rdb, C.bool(writeOnly)),
		writeOnly: writeOnly,
	}
	r.distinct.rocksDBBatch = r
	return r
}
Exemplo n.º 3
0
func newRocksDBBatch(r *RocksDB) *rocksDBBatch {
	return &rocksDBBatch{
		parent: r,
		batch:  C.DBNewBatch(r.rdb),
	}
}