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

Function PgbsonInitFromIterDocumentValue

pg_documentdb_core/src/io/pgbson.c:575–582  ·  view source on GitHub ↗

* PgbsonInitFromIterDocumentValue initializes a pgbson structure from the * document that given iterator holds. */

Source from the content-addressed store, hash-verified

573 * document that given iterator holds.
574 */
575pgbson *
576PgbsonInitFromIterDocumentValue(const bson_iter_t *iter)
577{
578 /* copy just to ensure we don't modify the const iter */
579 bson_iter_t iterCopy = *iter;
580 const bson_value_t *value = bson_iter_value(&iterCopy);
581 return PgbsonInitFromDocumentBsonValue(value);
582}
583
584
585/*

Callers 2

ParseDropIndexesArgFunction · 0.85

Calls 1

Tested by

no test coverage detected