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

Function PgbsonWriterAppendInt64

pg_documentdb_core/src/io/pgbson.c:869–879  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

867 * Appends given int64 to the writer with the specified path.
868 */
869void
870PgbsonWriterAppendInt64(pgbson_writer *writer, const char *path, uint32_t pathLength,
871 int64 value)
872{
873 if (!bson_append_int64(&(writer->innerBson), path, pathLength, value))
874 {
875 ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_BADVALUE),
876 errmsg(
877 "adding Int64 value: failed due to value being too large")));
878 }
879}
880
881
882/*

Callers 15

MakeDropIndexesMsgFunction · 0.85
BuildResponseMessageFunction · 0.85
DbStatsWorkerFunction · 0.85
BuildResponseMessageFunction · 0.85
DetectApiSchemaCommandFunction · 0.85
MergeWorkerIndexDocsFunction · 0.85
CollStatsWorkerFunction · 0.85
SetupCursorPagePreambleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected