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

Function create_array

test/src/unit-cppapi-consolidation.cc:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void create_array(const std::string& array_name) {
54 Context ctx;
55 Domain domain(ctx);
56 auto d = Dimension::create<int>(ctx, "d", {{1, 3}}, 2);
57 domain.add_dimensions(d);
58 auto a = Attribute::create<int>(ctx, "a");
59 ArraySchema schema(ctx, TILEDB_DENSE);
60 schema.set_domain(domain);
61 schema.add_attributes(a);
62 Array::create(array_name, schema);
63}
64
65void create_array_2d(const std::string& array_name) {
66 Context ctx;

Calls 1

set_domainMethod · 0.45

Tested by

no test coverage detected