MONGOC_BULK_OP...GET_COLLECTION(3)
π MONGOC_BULK_OP...GET_COLLECTION π
okay bestie, welcome to the libmongoc section of the manual β yes, that libmongoc, the MongoDB C driver, the whole reason you're here π«Ά
This one's a lil baby page, it's giving "short and sweet" and honestly? Iconic for it.
β¨ SYNOPSIS β¨
const char*
mongoc_bulk_operation_get_collection (const mongoc_bulk_operation_t *bulk);
like, that's the whole thing. one function. no drama. πΈ
π PARAMETERS π
bulkβ amongoc_bulk_operation_t. that's your bulk operation bestie, pass it in π
π¦ DESCRIPTION π¦
it retrieves the collection name. that's it, that's the whole job. no cap. it looks at the bulk op, grabs the collection name out of it, hands it back to you β¨
β RETURNS β
a C string π and listen β do not modify it and do not free it. it's not yours to mess with, it's just visiting. look at it, read it, be grateful, move on. π
lowkey important caveat: the string is borrowed, not given. touching it or free-ing it is a one-way ticket to undefined-behaviour city and we are NOT going there π₯
π AUTHOR π
MongoDB, Inc β the whole company, credited. main character energy fr fr.
π COPYRIGHT π
2009-present, MongoDB, Inc. β that's the copyright line, keep it in your heart π
and that's the page! version 2.5.6, dated Oct 09, straight outta the libmongoc manual π go forth and get those collection names, bestie, you got this π β¨π
π¦ 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