DOKK / manpages / debian 12 / libbson-doc / bson_copy_to_excluding.3.en
BSON_COPY_TO_EXCLUDING(3) libbson BSON_COPY_TO_EXCLUDING(3)

bson_copy_to_excluding - bson_copy_to_excluding()

void
bson_copy_to_excluding (const bson_t *src,

bson_t *dst,
const char *first_exclude,
...) BSON_GNUC_NULL_TERMINATED
BSON_GNUC_DEPRECATED_FOR (bson_copy_to_excluding_noinit);


  • src: A bson_t.
  • dst: A bson_t.
  • first_exclude: The first field name to exclude.

The bson_copy_to_excluding() function shall copy all fields from src to dst except those specified by the variadic, NULL terminated list of keys starting from first_exclude.

This function is deprecated. Please use bson_copy_to_excluding_noinit() in new code.


WARNING:

bson_init() is called on dst.


MongoDB, Inc

2017-present, MongoDB, Inc

October 20, 2022 1.23.1