MONGOC_BULK_OP...ION_DELETE_ONE(3)
π MONGOC_BULK_OP...ION_DELETE_ONE π
okay bestie, so we're looking at the mongoc_bulk_operation_delete_one page from libmongoc, and I need you to sit down for this one because there's some lore first π«Ά
π¨ WARNING π¨
Deprecated since version 0.96.0: Use mongoc_bulk_operation_remove_one() instead.
like... she's retired, bestie π she served her time, but the girlies have moved on. if you're writing new code, do not reach for this one.
β¨ SYNOPSIS β¨
void
mongoc_bulk_operation_delete_one (mongoc_bulk_operation_t *bulk,
const bson_t *selector);
So what does she do? She deletes a single document as part of a bulk operation. π
But here's the thing β and this is the part everyone skips β she only queues the operation. That's it. She doesn't actually go do it. To make it actually happen, you have to call mongoc_bulk_operation_execute(). no cap. it's giving "adding to cart" not "checkout" πβ¨
π PARAMETERS π
bulk: Amongoc_bulk_operation_t. (the main character, obviously)selector: Abson_t. (the who-are-we-deleting)
π ERRORS π
Errors are propagated via mongoc_bulk_operation_execute(). so like, don't come for this function when something goes wrong, she's not the one reporting it π«
π SEE ALSO π
mongoc_bulk_operation_remove_one_with_opts()mongoc_bulk_operation_remove_many_with_opts()
πΈ AUTHOR πΈ
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
and that's the whole page, bestie π written by MongoDB, Inc, version 1.30.13, dated Oct 09 β mwah, sending you a forehead kiss, now go call mongoc_bulk_operation_remove_one() instead π§β¨π¦
π¦ where this page comes from
- fedora 43: mongo-c-driver-devel 1.30.13-1.fc43 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- fedora 43: mongo-c-driver-devel 1.30.13-1.fc43 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms