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

Function PgbsonValidateInputBson

pg_documentdb_core/src/io/pgbson.c:490–495  ·  view source on GitHub ↗

* Validates a user input bson for the specified flags, to ensure it's compatible with the database. */

Source from the content-addressed store, hash-verified

488 * Validates a user input bson for the specified flags, to ensure it's compatible with the database.
489 */
490void
491PgbsonValidateInputBson(const pgbson *bsonDocument, bson_validate_flags_t validateFlag)
492{
493 ValidateInputBsonBytes((const uint8_t *) VARDATA_ANY(bsonDocument),
494 VARSIZE_ANY_EXHDR(bsonDocument), validateFlag);
495}
496
497
498/*

Calls 1

ValidateInputBsonBytesFunction · 0.85

Tested by

no test coverage detected