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

Function PgbsonWriterStartDocument

pg_documentdb_core/src/io/pgbson.c:1226–1237  ·  view source on GitHub ↗

* Appends a "Start document" to the current writer and returns the writer to append to the child document. */

Source from the content-addressed store, hash-verified

1224 * Appends a "Start document" to the current writer and returns the writer to append to the child document.
1225 */
1226void
1227PgbsonWriterStartDocument(pgbson_writer *writer, const char *path, uint32_t pathLength,
1228 pgbson_writer *childWriter)
1229{
1230 if (!bson_append_document_begin(&(writer->innerBson), path, pathLength,
1231 &(childWriter->innerBson)))
1232 {
1233 ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_BADVALUE), errmsg(
1234 "adding StartDocument value: failed due to value being too large"))
1235 );
1236 }
1237}
1238
1239
1240/*

Callers 15

UpdateClusterMetadataFunction · 0.85
WriteShardMapFunction · 0.85
CheckIndisvalidFunction · 0.85
AddIndexBuildsFunction · 0.85
connection_statusFunction · 0.85
MakeBuildIndexesMsgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected