MCPcopy Create free account
hub / github.com/TileDB-Inc/TileDB / has_attribute

Method has_attribute

tiledb/sm/cpp_api/array_schema.h:570–576  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

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 */

Callers 2

QueryExperimentalClass · 0.45
tiledb_dt_infoFunction · 0.45

Calls 5

handle_errorMethod · 0.80
c_strMethod · 0.80
getMethod · 0.45
ptrMethod · 0.45

Tested by

no test coverage detected