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

Function PgbsonArrayWriterEndArray

pg_documentdb_core/src/io/pgbson.c:1172–1183  ·  view source on GitHub ↗

* Finishes appending a nested array to the current array writer. */

Source from the content-addressed store, hash-verified

1170 * Finishes appending a nested array to the current array writer.
1171 */
1172void
1173PgbsonArrayWriterEndArray(pgbson_array_writer *writer, pgbson_array_writer *childWriter)
1174{
1175 if (!bson_append_array_end(&(writer->innerBson), &(childWriter->innerBson)))
1176 {
1177 ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_BADVALUE), errmsg(
1178 "adding ArrayWriterEndArray value: failed due to value being too large"))
1179 );
1180 }
1181
1182 writer->index++;
1183}
1184
1185
1186/*

Callers 3

EvaluateRedactArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected