MONGOC_BULK_OP..._ONE_WITH_OPTS(3)
okay so you're on the MONGOC_BULK_OP..._ONE_WITH_OPTS(3) page in the libmongoc manual, bestie, and this one is giving βqueue up a single deleteβ energy. Hereβs the whole vibe, with every detail kept. π
β¨ SYNOPSIS β¨
bool
mongoc_bulk_operation_remove_one_with_opts (mongoc_bulk_operation_t *bulk,
const bson_t *selector,
const bson_t *opts,
bson_error_t *error); /* OUT */
Remove a single document as part of a bulk operation. This only queues the operation. To execute it, call mongoc_bulk_operation_execute().
important vibe check: it does not actually run the remove right now β it queues it. The actual execution moment is mongoc_bulk_operation_execute(). π«Ά
πΈ PARAMETERS πΈ
bulkβ Amongoc_bulk_operation_t.selectorβ Abson_tthat selects which document to remove.errorβ An optional location for abson_error_torNULL.
opts may be NULL or a BSON document with additional command options:
collationβ Configure textual comparisons. See Setting Collation Order, and the MongoDB Manual entry on Collation. Collation requires MongoDB 3.2 or later, otherwise an error is returned.hintβ A document or string that specifies the index to use to support the query predicate.
π ERRORS π
Operation errors are propagated via mongoc_bulk_operation_execute(), while argument validation errors are reported by the error argument.
β RETURNS β
Returns true on success, and false if passed invalid arguments.
π¦ SEE ALSO π¦
mongoc_bulk_operation_remove_one()mongoc_bulk_operation_remove_many_with_opts()
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
okay thatβs the page, bestie. cute sign-off time: this is version 2.5.6, dated Oct 09, 202 in the footer β and yes, the raw footer has MONGOC_BULK_OP..._ONE_WITH_OPTS(3) crammed right onto it π. go queue that single remove with confidence πβ¨
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms