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

Method delete_metadata

tiledb/sm/cpp_api/array.h:1089–1094  ·  view source on GitHub ↗

* It deletes a metadata key-value item from an open array. The array must * be opened in WRITE mode, otherwise the function will error out. * * @param key The key of the metadata item to be deleted. * * @note The writes will take effect only upon closing the array. * * @note If the key does not exist, this will take no effect * (i.e., the function will not error out).

Source from the content-addressed store, hash-verified

1087 * (i.e., the function will not error out).
1088 */
1089 void delete_metadata(const std::string& key) {
1090 auto& ctx = ctx_.get();
1091 tiledb_ctx_t* c_ctx = ctx.ptr().get();
1092 ctx.handle_error(
1093 tiledb_array_delete_metadata(c_ctx, array_.get(), key.c_str()));
1094 }
1095
1096 /**
1097 * It gets a metadata key-value item from an open array. The array must

Callers

nothing calls this directly

Calls 5

handle_errorMethod · 0.80
c_strMethod · 0.80
getMethod · 0.45
ptrMethod · 0.45

Tested by

no test coverage detected