MONGOC_BULK_OP...GET_COLLECTION(3)

πŸ“¦
version 2.5.6 Β· 2 versions
, in epel 10

πŸ’… 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 β€” a mongoc_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.


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