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

Method tiledb_array_evolve_wrapper

test/src/unit-capi-array_schema.cc:309–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309int ArraySchemaFx::tiledb_array_evolve_wrapper(
310 tiledb_ctx_t* ctx,
311 const char* array_name,
312 tiledb_array_schema_evolution_t* array_schema_evolution) {
313#ifndef TILEDB_SERIALIZATION
314 return tiledb_array_evolve(ctx, array_name, array_schema_evolution);
315#endif
316 tiledb_buffer_t* buffer;
317
318 // Serialize the array schema evolution
319 int rc = tiledb_serialize_array_schema_evolution(
320 ctx,
321 array_schema_evolution,
322 (tiledb_serialization_type_t)tiledb::sm::SerializationType::CAPNP,
323 0,
324 &buffer);
325 REQUIRE(rc == TILEDB_OK);
326
327 // Deserialize to validate we can round-trip
328 rc = tiledb_deserialize_array_schema_evolution(
329 ctx,
330 buffer,
331 (tiledb_serialization_type_t)tiledb::sm::SerializationType::CAPNP,
332 1,
333 &array_schema_evolution);
334
335 tiledb_buffer_free(&buffer);
336
337 return tiledb_array_evolve(ctx, array_name, array_schema_evolution);
338}
339
340int ArraySchemaFx::array_create_wrapper(
341 const std::string& path, tiledb_array_schema_t* array_schema) {

Callers

nothing calls this directly

Tested by

no test coverage detected