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

Function tiledb_array_delete

tiledb/api/c_api/array/array_api.cc:199–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199capi_return_t tiledb_array_delete(tiledb_ctx_t* ctx, const char* array_uri) {
200 // Create Array object
201 auto uri = tiledb::sm::URI(array_uri, URI::must_be_valid);
202 tiledb_array_t* array = tiledb_array_t::make_handle(ctx->resources(), uri);
203
204 // Open the array for exclusive modification
205 try {
206 throw_if_not_ok(array->open(
207 QueryType::MODIFY_EXCLUSIVE,
208 EncryptionType::NO_ENCRYPTION,
209 nullptr,
210 0));
211 } catch (...) {
212 tiledb_array_t::break_handle(array);
213 throw;
214 }
215
216 // Delete the array
217 try {
218 array->delete_array(uri);
219 } catch (...) {
220 throw_if_not_ok(array->close());
221 tiledb_array_t::break_handle(array);
222 throw;
223 }
224 tiledb_array_t::break_handle(array);
225
226 return TILEDB_OK;
227}
228
229capi_return_t tiledb_array_delete_fragments_v2(
230 tiledb_ctx_t* ctx,

Callers 6

unit_capi_array.ccFile · 0.85
~ordinary_arrayMethod · 0.85
delete_arrayMethod · 0.85
delete_arrayMethod · 0.85
unit-capi-array.ccFile · 0.85
delMethod · 0.85

Calls 6

throw_if_not_okFunction · 0.85
resourcesMethod · 0.80
URIClass · 0.50
openMethod · 0.45
delete_arrayMethod · 0.45
closeMethod · 0.45

Tested by 1

~ordinary_arrayMethod · 0.68