* Returns the data protocol version for the given URI. * * **Example:** * @code{.cpp} * tiledb::Context ctx; * auto data_protocol = ctx.data_protocol("tiledb://namespace/array"); * @endcode * * @param uri The URI to check. * @return The data protocol version. */
| 244 | * @return The data protocol version. |
| 245 | */ |
| 246 | DataProtocol data_protocol(const std::string& uri) const { |
| 247 | tiledb_data_protocol_t protocol; |
| 248 | handle_error( |
| 249 | tiledb_ctx_get_data_protocol(ctx_.get(), uri.c_str(), &protocol)); |
| 250 | return static_cast<DataProtocol>(protocol); |
| 251 | } |
| 252 | |
| 253 | /** Returns a JSON-formatted string of the stats. */ |
| 254 | std::string stats() { |
no test coverage detected