* @brief Opens the array. The array is opened using a query type as input. * * This is to indicate that queries created for this `Array` * object will inherit the query type. In other words, `Array` * objects are opened to receive only one type of queries. * They can always be closed and be re-opened with another query type. * Also there may be many different `Array` * objects
| 407 | * @throws TileDBError if the array is already open or other error occurred. |
| 408 | */ |
| 409 | void open(tiledb_query_type_t query_type) { |
| 410 | auto& ctx = ctx_.get(); |
| 411 | tiledb_ctx_t* c_ctx = ctx.ptr().get(); |
| 412 | ctx.handle_error(tiledb_array_open(c_ctx, array_.get(), query_type)); |
| 413 | tiledb_array_schema_t* array_schema; |
| 414 | ctx.handle_error( |
| 415 | tiledb_array_get_schema(c_ctx, array_.get(), &array_schema)); |
| 416 | schema_ = ArraySchema(ctx, array_schema); |
| 417 | } |
| 418 | |
| 419 | // clang-format off |
| 420 | /** |
nothing calls this directly
no test coverage detected