MONGOC_REMOVE_FLAGS_T(3)
π MONGOC_REMOVE_FLAGS_T(3) β flags for deletion operations β¨
okay bestie so this is from libmongoc, and it's literally just the little enum that tells a remove command how many docs you're yeeting. it's giving "small but mighty". let's get into it π«Ά
β¨ SYNOPSIS β¨
typedef enum {
MONGOC_REMOVE_NONE = 0,
MONGOC_REMOVE_SINGLE_REMOVE = 1 << 0,
} mongoc_remove_flags_t;
π¦ DESCRIPTION π¦
so these flags are literally the MongoDB wire protocol, no cap. you can bitwise or them together (yes, or them, they're flags, that's the whole vibe π
).
and heads up: they may change the number of documents that are removed during a remove command. so like, don't just slap them on and forget, okay? π
π FLAG VALUES π
MONGOC_REMOVE_NONEβ specify no removal flags. all matching documents will be removed. (yeah. all of them. main character energy, careful π₯)MONGOC_REMOVE_SINGLE_REMOVEβ only remove the first matching document from the selector. just the one. one single lil guy π
π AUTHOR π
MongoDB, Inc β icons fr fr
π COPYRIGHT π
2009-present, MongoDB, Inc.
and that's the whole page, bestie, you ate π sign-off time: this was libmongoc version 2.5.6, dated Oct 09, 2026 β go forth and delete responsibly β¨ππ¦
π¦ 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