* It puts a metadata key-value item to an open array. The array must * be opened in WRITE mode, otherwise the function will error out. * * @param key The key of the metadata item to be added. UTF-8 encodings * are acceptable. * @param value_type The datatype of the value. * @param value_num The value may consist of more than one items of the * same datatype. This argum
| 1065 | * @note The writes will take effect only upon closing the array. |
| 1066 | */ |
| 1067 | void put_metadata( |
| 1068 | const std::string& key, |
| 1069 | tiledb_datatype_t value_type, |
| 1070 | uint32_t value_num, |
| 1071 | const void* value) { |
| 1072 | auto& ctx = ctx_.get(); |
| 1073 | tiledb_ctx_t* c_ctx = ctx.ptr().get(); |
| 1074 | ctx.handle_error(tiledb_array_put_metadata( |
| 1075 | c_ctx, array_.get(), key.c_str(), value_type, value_num, value)); |
| 1076 | } |
| 1077 | |
| 1078 | /** |
| 1079 | * It deletes a metadata key-value item from an open array. The array must |
no test coverage detected