1MONGOC_URI_GET_COMPRESSORS(3) MongoDB C Driver MONGOC_URI_GET_COMPRESSORS(3)
2
3
4
6 mongoc_uri_get_compressors - mongoc_uri_get_compressors()
7
9 const bson_t *
10 mongoc_uri_get_compressors (const mongoc_uri_t *uri);
11
13 ยท uri: A mongoc_uri_t.
14
16 Returns a bson document with the enabled compressors as the keys.
17
19 mongoc_client_t *client;
20 mongoc_uri_t *uri;
21
22 uri = mongoc_uri_new ("mongodb://localhost/?compressors=zlib,snappy");
23
24 if (bson_has_field (mongoc_uri_get_compressors (uri), "snappy")) {
25 /* snappy enabled */
26 }
27
29 A bson_t * which should not be modified or freed.
30
32 MongoDB, Inc
33
35 2017-present, MongoDB, Inc
36
37
38
39
401.13.1 Jan 24, 2019 MONGOC_URI_GET_COMPRESSORS(3)