* Creates a new TileDB array given an input schema. * * **Example:** * @code{.cpp} * tiledb::Array::create(ctx, "s3://bucket-name/array-name", schema); * @endcode * * @param ctx The TileDB context. * @param uri URI where array will be created. * @param schema The array schema. */
| 676 | * @param schema The array schema. |
| 677 | */ |
| 678 | static void create( |
| 679 | const Context& ctx, const std::string& uri, const ArraySchema& schema) { |
| 680 | tiledb_ctx_t* c_ctx = ctx.ptr().get(); |
| 681 | ctx.handle_error(tiledb_array_schema_check(c_ctx, schema.ptr().get())); |
| 682 | ctx.handle_error( |
| 683 | tiledb_array_create(c_ctx, uri.c_str(), schema.ptr().get())); |
| 684 | } |
| 685 | |
| 686 | /** |
| 687 | * Creates a new TileDB array given an input schema. |
nothing calls this directly
no test coverage detected