MCPcopy Create free account
hub / github.com/TileDB-Inc/TileDB / remove

Method remove

tiledb/sm/cpp_api/profile_experimental.h:256–270  ·  view source on GitHub ↗

* Removes a profile from a profiles file in a given directory. * * @param name The name of the profile to remove. * @param dir The directory path where the profiles file is located. */

Source from the content-addressed store, hash-verified

254 * @param dir The directory path where the profiles file is located.
255 */
256 static void remove(
257 std::optional<std::string> name = std::nullopt,
258 std::optional<std::string> dir = std::nullopt) {
259 const char* n = name.has_value() ? name->c_str() : nullptr;
260 const char* h = dir.has_value() ? dir->c_str() : nullptr;
261 tiledb_error_t* capi_error = nullptr;
262 int rc = tiledb_profile_remove(n, h, &capi_error);
263 if (rc != TILEDB_OK) {
264 const char* msg_cstr;
265 tiledb_error_message(capi_error, &msg_cstr);
266 std::string msg = msg_cstr;
267 tiledb_error_free(&capi_error);
268 throw ProfileException(msg);
269 }
270 }
271
272 /** Dumps the profile in ASCII format. */
273 std::string dump() const {

Callers

nothing calls this directly

Calls 6

tiledb_profile_removeFunction · 0.85
tiledb_error_messageFunction · 0.85
tiledb_error_freeFunction · 0.85
ProfileExceptionClass · 0.85
has_valueMethod · 0.80
c_strMethod · 0.80

Tested by

no test coverage detected