func newRocksDBBatch(parent *RocksDB) *rocksDBBatch { r := &rocksDBBatch{ parent: parent, batch: C.DBNewBatch(parent.rdb), } r.distinct.rocksDBBatch = r return r }
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 }
func newRocksDBBatch(r *RocksDB) *rocksDBBatch { return &rocksDBBatch{ parent: r, batch: C.DBNewBatch(r.rdb), } }