MONGOC_CLIENT_POOL_NEW(3)

πŸ’… MONGOC_CLIENT_POOL_NEW(3) πŸ’…

okay so bestie, welcome to libmongoc β€” yes that's the manual name, we're just gonna casually drop it here at the top like it's no big deal ✨


🌸 SYNOPSIS 🌸

mongoc_client_pool_t *
mongoc_client_pool_new (const mongoc_uri_t *uri);

So this function literally creates a brand new mongoc_client_pool_t, and it does that using the mongoc_uri_t you hand it. That's it. That's the whole vibe. 🫢


πŸŽ€ PARAMETERS πŸŽ€

  • uri β€” a mongoc_uri_t. yeah. that's the one. hand it over πŸ’–

✨ RETURNS ✨

You get back a newly allocated mongoc_client_pool_t β€” and listen, this is the important part β€” you gotta free it with mongoc_client_pool_destroy() when you're done with it, no cap. don't just leave it sitting there like an unread group chat 🫠

If something goes wrong? you get NULL back, and an error may be logged. may. not guaranteed. so don't come for me if the log is empty, iykyk πŸ’€

SEE ALSO: mongoc_client_pool_new_with_error() β€” the icon, the main character, the one you call when you actually want the error handed to you 🌈

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” periodt πŸ’œ


2009-present, MongoDB, Inc. β€” iconic longevity honestly πŸŽ€


and that's the tea, bestie! this page is from libmongoc version 2.5.6, dated Oct 09, 2026 β€” go forth and pool responsibly πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from