* Checks if the schema has an attribute of the given name. * * @param name Name of attribute to check for * @return True if the schema has an attribute of the given name. */
| 568 | * @return True if the schema has an attribute of the given name. |
| 569 | */ |
| 570 | bool has_attribute(const std::string& name) const { |
| 571 | auto& ctx = ctx_.get(); |
| 572 | int32_t has_attr; |
| 573 | ctx.handle_error(tiledb_array_schema_has_attribute( |
| 574 | ctx.ptr().get(), schema_.get(), name.c_str(), &has_attr)); |
| 575 | return has_attr == 1; |
| 576 | } |
| 577 | |
| 578 | /* ********************************* */ |
| 579 | /* STATIC FUNCTIONS */ |
no test coverage detected