MONGOC_CLIENT...SET_SERVER_API(3)
π MONGOC_CLIENT...SET_SERVER_API(3) π
okay so bestie, welcome to another page of the libmongoc manual (yes, that's the manual name, and yes, this function lives in it). The actual function you're here for is mongoc_client_pool_set_server_api β the header's just being dramatic with the whole MONGOC_CLIENT...SET_SERVER_API(3) thing. iykyk. π¦
β¨ SYNOPSIS β¨
bool
mongoc_client_pool_set_server_api (mongoc_client_pool_t *pool,
const mongoc_server_api_t *api,
bson_error_t *error);
So what does it do? It sets the API version to use for clients created through pool. That's the whole vibe. π
But here's the part where you gotta pay attention, bestie, because it's giving one-shot energy:
Once the API version is set on a pool, it may not be changed to a new value. Attempting to do so will cause this method to fail and set error. So likeβ¦ pick your fave and commit, fr fr. No take-backs. π
πΈ PARAMETERS πΈ
pool: Amongoc_client_pool_t. πapi: Amongoc_server_api_t. β¨error: Abson_error_t. π«Ά
β RETURNS β
Returns true if the version was successfully set, and false if not. On failure, error will be set. Simple as that β main character return value, no cap. π
π AUTHOR π
MongoDB, Inc β the icons behind all of this. π
π COPYRIGHT π
Copyright 2009-present, MongoDB, Inc. periodt. π
and that's the page!! π this one's from libmongoc version 2.5.6, dated Oct 09, 2026 β go forth and set that API version exactly once, bestie, and slay. π¦π₯π
π¦ 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