Congyuwang / RocksDict

Python fast on-disk dictionary / RocksDB & SpeeDB Python binding
https://congyuwang.github.io/RocksDict/rocksdict.html
MIT License
176 stars 8 forks source link

Automatically add default column families #29

Closed Congyuwang closed 1 year ago

Congyuwang commented 1 year ago

Now, it's possible not to specify "default" column

Rdict(path, column_families={"default": options, "other_columns": xx})

when reopening Rdict with columns families. The old way is still valid, but a new way is also possible:

Rdict(path, options=options, column_families={"other_columns": xx})

Especially if default Options is used, then just use

Rdict(path, column_families={"other_columns": xx})
Congyuwang commented 1 year ago

This is in fact a bug fix. It might cause compatibility issue with v0.2.x users