MCPcopy Create free account
hub / github.com/documentdb/documentdb / IsIndexOfType

Function IsIndexOfType

pg_documentdb/src/metadata/index.c:2302–2307  ·  view source on GitHub ↗

* Returns true if the index plugin vector for the key document is of the given type. */

Source from the content-addressed store, hash-verified

2300 * Returns true if the index plugin vector for the key document is of the given type.
2301 */
2302inline static bool
2303IsIndexOfType(const bson_value_t *value, const char *indexType)
2304{
2305 return value->value_type == BSON_TYPE_UTF8 &&
2306 strcmp(value->value.v_utf8.str, indexType) == 0;
2307}
2308
2309
2310/*

Callers 2

IsTextIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected