1MONGOC_CLIENT_POOL_SET_SERVER_API(3)libmongoMcONGOC_CLIENT_POOL_SET_SERVER_API(3)
2
3
4

SYNOPSIS

6          bool
7          mongoc_client_pool_set_server_api (mongoc_client_pool_t *pool,
8                                             const mongoc_server_api_t *api,
9                                             bson_error_t *error);
10
11       Set  the  API version to use for clients created through pool. Once the
12       API version is set on a pool, it may not be changed to a new value. At‐
13       tempting to do so will cause this method to fail and set error.
14

PARAMETERS

16pool: A mongoc_client_pool_t.
17
18api: A mongoc_server_api_t.
19
20error: A bson_error_t.
21

RETURNS

23       True if the version was successfully set, false if not. On failure, er‐
24       ror will be set.
25

AUTHOR

27       MongoDB, Inc
28
30       2017-present, MongoDB, Inc
31
32
33
34
351.25.1                           Nov 08, 20M2O3NGOC_CLIENT_POOL_SET_SERVER_API(3)
Impressum