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

Function create_array

test/src/unit-cppapi-consolidation-sparse.cc:47–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void create_array(const std::string& array_name) {
48 Context ctx;
49 Domain domain(ctx);
50 auto d = Dimension::create<int>(ctx, "d", {{1, 4}}, 4);
51 domain.add_dimensions(d);
52 auto a = Attribute::create<int>(ctx, "a");
53 ArraySchema schema(ctx, TILEDB_SPARSE);
54 schema.set_domain(domain);
55 schema.add_attributes(a);
56 Array::create(array_name, schema);
57}
58
59void write_array(
60 const std::string& array_name,

Calls 1

set_domainMethod · 0.45

Tested by

no test coverage detected