-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CreateColumnFamilies with column family descriptors is not available via the C API #12887
Comments
Hello @sadderchris , I'm looking into C API and it looks like column family descriptors are not exposed at all. Usually where API expect column family descriptor, we pass two parameters, rocksdb_column_family_handle_t** rocksdb_create_column_families(
rocksdb_t* db,
int num_column_families,
const char* const* column_family_names,
const rocksdb_options_t* const* column_family_options,
size_t* lencfs, char** errptr); Radek |
Wouldn't this break any existing callers of |
Hello @sadderchris , of course you are correct. Too much time in Java/C++ that I almost forgot C doesn't support overloading. rocksdb_column_family_handle_t** rocksdb_create_column_families_with_options(
rocksdb_t* db,
int num_column_families,
const char* const* column_family_names,
const rocksdb_options_t* const* column_family_options,
size_t* lencfs, char** errptr); Radek |
Thanks for the quick turnaround, this looks like it would work for our purposes. |
Expected behavior
Using the C API, I can batch create column families from column family descriptors
Actual behavior
It's possible to create a single column family (1), or a batch of column families that all use the same options (2), but not from column family descriptors
Steps to reproduce the behavior
N/A
The text was updated successfully, but these errors were encountered: