Closed fried closed 5 years ago
I inadvertently included the fix for StringAppendOperator to work for python3.
@fried
thank you. The review is ongoing.
When will this PR be merged? I'm looking forward :)
Can you please proceed with that PR? Column Family support will help me a lot in my current project. Thank you!
Can you give some tutorial, how can be open an existing database which has column families? I get rocksdb.errors.InvalidArgument: Invalid argument: You have to open all column families. Column families not opened: ......
when i want to open my database.
Thank you!
UPDATE
I have got this! You need create a dict from the column family name and his options like:
cfs = { "default":rocksdb.ColumnFamilyOptions(), "cf_1":rocksdb.ColumnFamilyOptions() }
and you can open the database:
db = rocksdb.DB(path, opts, column_families=cfs)
Any operation that handles keys can also handle column families by accepting a tuple(ColumnFamilyHandle, key) any operation that returns keys when used with ColumnFamilies will return them in the same way.