* Get a copy of an Attribute in the schema by name. * * @param name Name of attribute * @return Attribute */
| 529 | * @return Attribute |
| 530 | */ |
| 531 | Attribute attribute(const std::string& name) const override { |
| 532 | auto& ctx = ctx_.get(); |
| 533 | tiledb_attribute_t* attr; |
| 534 | ctx.handle_error(tiledb_array_schema_get_attribute_from_name( |
| 535 | ctx.ptr().get(), schema_.get(), name.c_str(), &attr)); |
| 536 | return Attribute(ctx, attr); |
| 537 | } |
| 538 | |
| 539 | /** Returns the number of attributes in the schema. **/ |
| 540 | unsigned attribute_num() const override { |
no test coverage detected