| 49 | using namespace tiledb; |
| 50 | |
| 51 | void create_array(const std::string& array_name, tiledb_array_type_t type) { |
| 52 | Context ctx; |
| 53 | if (Object::object(ctx, array_name).type() == Object::Type::Array) |
| 54 | return; |
| 55 | |
| 56 | Domain domain(ctx); |
| 57 | domain.add_dimension(Dimension::create<int>(ctx, "rows", {{1, 4}}, 4)) |
| 58 | .add_dimension(Dimension::create<int>(ctx, "cols", {{1, 4}}, 4)); |
| 59 | ArraySchema schema(ctx, type); |
| 60 | schema.set_domain(domain).set_order({{TILEDB_ROW_MAJOR, TILEDB_ROW_MAJOR}}); |
| 61 | schema.add_attribute(Attribute::create<int>(ctx, "a")); |
| 62 | Array::create(ctx, array_name, schema); |
| 63 | } |
| 64 | |
| 65 | void create_arrays_groups() { |
| 66 | tiledb::Context ctx; |
no test coverage detected