* Creates a new array schema. * * **Example:** * @code{.cpp} * tiledb::Context ctx; * tiledb::ArraySchema schema(ctx.ptr().get(), TILEDB_SPARSE); * @endcode * * @param ctx TileDB context * @param type Array type, sparse or dense. */
| 108 | * @param type Array type, sparse or dense. |
| 109 | */ |
| 110 | explicit ArraySchema(const Context& ctx, tiledb_array_type_t type) |
| 111 | : Schema(ctx) { |
| 112 | tiledb_array_schema_t* schema; |
| 113 | ctx.handle_error(tiledb_array_schema_alloc(ctx.ptr().get(), type, &schema)); |
| 114 | schema_ = std::shared_ptr<tiledb_array_schema_t>(schema, deleter_); |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * Loads the schema of an existing array. |
nothing calls this directly
no test coverage detected