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

Function PgbsonWriterAppendEmptyArray

pg_documentdb_core/src/io/pgbson.c:1402–1413  ·  view source on GitHub ↗

* Appends an empty array to the writer with a specified path. */

Source from the content-addressed store, hash-verified

1400 * Appends an empty array to the writer with a specified path.
1401 */
1402void
1403PgbsonWriterAppendEmptyArray(pgbson_writer *writer, const char *path, uint32_t pathLength)
1404{
1405 bson_t emptyArray;
1406 bson_init(&emptyArray);
1407 if (!bson_append_array(&(writer->innerBson), path, pathLength, &emptyArray))
1408 {
1409 ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_BADVALUE), errmsg(
1410 "adding AppendEmptyArray value: failed due to value being too large"))
1411 );
1412 }
1413}
1414
1415
1416/*

Callers 13

command_distinct_queryFunction · 0.85
GenerateRootMultiKeyTermFunction · 0.85
GenerateEmptyArrayTermFunction · 0.85
GetLowerBoundForLessThanFunction · 0.85
BsonOrderFinalFunction · 0.85
BsonOrderFinalOnSortedFunction · 0.85
SliceHandlerFuncFunction · 0.85
GetArrayAggCoalesceFunction · 0.85
bson_array_agg_finalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected