MONGOC_URI_GET_SERVICE(3)
β οΈ WARNING β οΈ
okay bestie sit down for a sec β this one's deprecated, like officially, since version 1.21.0. π
Use mongoc_uri_get_srv_hostname() instead. That's the glow-up, that's the one you want. periodt.
β¨ SYNOPSIS β¨
const char *
mongoc_uri_get_service (const mongoc_uri_t *uri);
π PARAMETERS π
uriβ amongoc_uri_t. that's it, that's the whole parameter list π
and what does it do? It returns the SRV host and domain name of a MongoDB URI. slay β¨
π RETURNS π
So here's the vibe check π:
- If this URI's scheme is
"mongodb+srv://", you get a string back π«Ά - If the scheme is
"mongodb://", you getNULLπ
no in-between, no surprises, it's giving very binary of it ngl
π AUTHOR π
MongoDB, Inc β the icons themselves π§
πΈ COPYRIGHT πΈ
2009-present, MongoDB, Inc. long-running main character energy fr fr β
and that's the whole page bestie!! this waslibmongocversion1.30.13, datedOct 09, 2026β go forth and use the non-deprecated function, i'm obsessed with you π¦π
π¦ where this page comes from
- fedora 43: mongo-c-driver-devel 1.30.13-1.fc43 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- fedora 43: mongo-c-driver-devel 1.30.13-1.fc43 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms