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β amongoc_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 π
π¦ COPYRIGHT π¦
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
- 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