MONGOC_CURSOR_DESTROY(3)

πŸ’… MONGOC_CURSOR_DESTROY(3) πŸ’…

okay bestie, this is the libmongoc page for mongoc_cursor_destroy β€” the lil cleanup function you call when you're done with a cursor. 🧚✨

✨ SYNOPSIS ✨

void
mongoc_cursor_destroy (mongoc_cursor_t *cursor);

πŸŽ€ PARAMETERS πŸŽ€

  • cursor β€” A mongoc_cursor_t. that's the cursor, bestie. πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

So mongoc_cursor_destroy frees a mongoc_cursor_t and releases all associated resources. Like, everything attached to it gets cleaned up. ✨ And if a server-side cursor has been allocated, it will be released as well β€” no cap. 🫢

If cursor is NULL, it does nothing. Literally nothing. it's giving β€œno thoughts, head empty” πŸ˜­πŸ’…

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” iconic behavior, honestly. πŸ’œ

2009-present, MongoDB, Inc. β€” periodt. πŸŽ€


that's the whole page, bestie! 🫢 this was libmongoc version 2.5.6, dated Oct 09, 2026 β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from