mongoc_client_pool_set_server_api(3)

mongoc_client_pool_set_server_api3

Usage

bool
mongoc_client_pool_set_server_api (mongoc_client_pool_t *pool,
                                   const mongoc_server_api_t *api,
                                   bson_error_t *error);

Set the API version to use for clients created through pool. 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.

Parameters

•

pool: A mongoc_client_pool_t.

•

api: A mongoc_server_api_t.

•

error: A bson_error_t.

Returns

True if the version was successfully set, false if not. On failure, error will be set.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.