| 88 | } |
| 89 | |
| 90 | void create_array(const std::string& array_name, tiledb_array_type_t type) { |
| 91 | Context ctx; |
| 92 | if (Object::object(ctx, array_name).type() == Object::Type::Array) |
| 93 | return; |
| 94 | |
| 95 | Domain domain(ctx); |
| 96 | domain.add_dimension(Dimension::create<int>(ctx, "rows", {{1, 4}}, 4)) |
| 97 | .add_dimension(Dimension::create<int>(ctx, "cols", {{1, 4}}, 4)); |
| 98 | ArraySchema schema(ctx, type); |
| 99 | schema.set_domain(domain).set_order({{TILEDB_ROW_MAJOR, TILEDB_ROW_MAJOR}}); |
| 100 | schema.add_attribute(Attribute::create<int>(ctx, "a")); |
| 101 | Array::create(ctx, array_name, schema); |
| 102 | } |
| 103 | |
| 104 | void move_remove_obj() { |
| 105 | tiledb::Context ctx; |
no test coverage detected