Sets a parameter in the profile. */
| 186 | |
| 187 | /** Sets a parameter in the profile. */ |
| 188 | void set_param(const std::string& param, const std::string& value) { |
| 189 | tiledb_error_t* capi_error = nullptr; |
| 190 | int rc = tiledb_profile_set_param( |
| 191 | profile_.get(), param.c_str(), value.c_str(), &capi_error); |
| 192 | if (rc != TILEDB_OK) { |
| 193 | const char* msg_cstr; |
| 194 | tiledb_error_message(capi_error, &msg_cstr); |
| 195 | std::string msg = msg_cstr; |
| 196 | tiledb_error_free(&capi_error); |
| 197 | throw ProfileException(msg); |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | /** Retrieves a parameter value from the profile. */ |
| 202 | std::optional<std::string> get_param(const std::string& param) const { |
no test coverage detected