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

Function PgbsonInitIterator

pg_documentdb_core/src/io/pgbson.c:714–723  ·  view source on GitHub ↗

* Initializes a bson iterator from a pgbson structure at the root of the * buffer. */

Source from the content-addressed store, hash-verified

712 * buffer.
713 */
714void
715PgbsonInitIterator(const pgbson *bson, bson_iter_t *iterator)
716{
717 if (!bson_iter_init_from_data(iterator, (const uint8_t *) VARDATA_ANY(bson),
718 VARSIZE_ANY_EXHDR(bson)))
719 {
720 ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_BADVALUE),
721 errmsg("invalid input syntax for BSON")));
722 }
723}
724
725
726/*

Callers 15

PgbsonDeduplicateFieldsFunction · 0.85
PgbsonInitIteratorAtPathFunction · 0.85
PgbsonGetBsonValueAtPathFunction · 0.85
bson_object_keysFunction · 0.85
WriteBsonSqlValueFunction · 0.85
extension_bson_hash_int4Function · 0.85
extension_bson_hash_int8Function · 0.85
ComparePgbsonQueryFunction · 0.85
ComparePgbsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected