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

Function PgbsonWriterAppendBool

pg_documentdb_core/src/io/pgbson.c:992–1002  ·  view source on GitHub ↗

* Appends given bool to the writer with the specified path. */

Source from the content-addressed store, hash-verified

990 * Appends given bool to the writer with the specified path.
991 */
992void
993PgbsonWriterAppendBool(pgbson_writer *writer, const char *path, uint32_t pathLength,
994 bool value)
995{
996 if (!bson_append_bool(&(writer->innerBson), path, pathLength, value))
997 {
998 ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_BADVALUE),
999 errmsg(
1000 "adding Bool value: failed due to value being too large")));
1001 }
1002}
1003
1004
1005/*

Callers 15

WriteShardMapFunction · 0.85
command_rebalancer_stopFunction · 0.85
MakeDropIndexesMsgFunction · 0.85
CheckIndisvalidFunction · 0.85
BuildResponseMessageFunction · 0.85
AddIndexBuildsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected