MONGOC_CLIENT_...ION_GET_CLIENT(3)
π MONGOC_CLIENT_SESSION_GET_CLIENT(3) π
okay bestie, welcome to libmongoc β the C driver for MongoDB, and this lil page is all about one tiny function that hands you back the client a session came from. group chat energy: it's giving "who's your mom", but for sessions π
β¨ SYNOPSIS β¨
mongoc_client_t *
mongoc_client_session_get_client (const mongoc_client_session_t *session);
literally that's the whole thing. she's short, she's sweet, she's iconic.
So what does she do? πΈ She returns the mongoc_client_t from which this session was created. That's it. That's the vibe. And if you wanna know how sessions come into existence in the first place, go peek at mongoc_client_start_session() β that's the origin story π«Ά
π PARAMETERS π
sessionβ amongoc_client_session_t. that's the session you're asking about, bestie, no cap π
β RETURNS β
A mongoc_client_t β and listen, this is the important part: that client should not be freed. π
fr fr, do NOTfreeit, do NOTdestroyit, don't even look at it funny. It's not yours to clean up. She's borrowed, not bought π
π AUTHOR π
MongoDB, Inc β the main characters β¨
π COPYRIGHT π
2009-present, MongoDB, Inc. β periodt, all rights reserved energy π
and that's the whole page, bestie! cute lil sign-off: this was libmongoc version 2.5.6, dated Oct 09, 2024 β go forth and not free that client π
π¦
π¦ 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