1MONGOC_URI_GET_COMPRESSORS(3)      libmongoc     MONGOC_URI_GET_COMPRESSORS(3)
2
3
4

SYNOPSIS

6          const bson_t *
7          mongoc_uri_get_compressors (const mongoc_uri_t *uri);
8

PARAMETERS

10uri: A mongoc_uri_t.
11

DESCRIPTION

13       Returns  a bson document with the enabled compressors as the keys or an
14       empty document if no compressors were provided.
15

EXAMPLE

17          mongoc_client_t *client;
18          mongoc_uri_t *uri;
19
20          uri = mongoc_uri_new ("mongodb://localhost/?compressors=zlib,snappy,zstd");
21
22          if (bson_has_field (mongoc_uri_get_compressors (uri), "snappy")) {
23             /* snappy enabled */
24          }
25

RETURNS

27       A bson_t * which should not be modified or freed.
28

AUTHOR

30       MongoDB, Inc
31
33       2017-present, MongoDB, Inc
34
35
36
37
381.25.1                           Nov 08, 2023    MONGOC_URI_GET_COMPRESSORS(3)
Impressum