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

Function PgbsonInitIteratorAtPath

pg_documentdb_core/src/io/pgbson.c:679–685  ·  view source on GitHub ↗

* Initializes a bson iterator from a pgbson structure at a * specified dot-notation path. if the path does not exist, returns false. */

Source from the content-addressed store, hash-verified

677 * specified dot-notation path. if the path does not exist, returns false.
678 */
679bool
680PgbsonInitIteratorAtPath(const pgbson *bson, const char *path, bson_iter_t *iterator)
681{
682 bson_iter_t documentIterator;
683 PgbsonInitIterator(bson, &documentIterator);
684 return bson_iter_find_descendant(&documentIterator, path, iterator);
685}
686
687
688/*

Callers 15

PgbsonHasDocumentIdFunction · 0.85
PgbsonGetDocumentIdFunction · 0.85
bson_get_valueFunction · 0.85
bson_get_value_textFunction · 0.85
EvaluateMetaSearchScoreFunction · 0.85
AddIndexBuildsFunction · 0.85
command_deleteFunction · 0.85
ParseBsonExpressionStateFunction · 0.85

Calls 1

PgbsonInitIteratorFunction · 0.85

Tested by

no test coverage detected