1MONGOC_URI_GET_COMPRESSORS(3)  MongoDB C Driver  MONGOC_URI_GET_COMPRESSORS(3)
2
3
4

NAME

6       mongoc_uri_get_compressors - mongoc_uri_get_compressors()
7

SYNOPSIS

9          const bson_t *
10          mongoc_uri_get_compressors (const mongoc_uri_t *uri);
11

PARAMETERS

13       ยท uri: A mongoc_uri_t.
14

DESCRIPTION

16       Returns a bson document with the enabled compressors as the keys.
17

EXAMPLE

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

RETURNS

29       A bson_t * which should not be modified or freed.
30

AUTHOR

32       MongoDB, Inc
33
35       2017-present, MongoDB, Inc
36
37
38
39
401.14.0                           Feb 22, 2019    MONGOC_URI_GET_COMPRESSORS(3)
Impressum