1MONGOC_CLIENT_GET_DATABASE_NAMES(3)libmongocMONGOC_CLIENT_GET_DATABASE_NAMES(3)
2
3
4
6 mongoc_client_get_database_names - mongoc_client_get_database_names()
7
8 WARNING:
9 Deprecated since version 1.9.0: This function is deprecated and
10 should not be used in new code.
11
12 Please use mongoc_client_get_database_names_with_opts() in new code.
13
14
16 char **
17 mongoc_client_get_database_names (mongoc_client_t *client, bson_error_t *error)
18 BSON_GNUC_WARN_UNUSED_RESULT
19 BSON_GNUC_DEPRECATED_FOR (mongoc_client_get_database_names_with_opts);
20
22 This function queries the MongoDB server for a list of known databases.
23
24 This function is considered a retryable read operation. Upon a tran‐
25 sient error (a network error, errors due to replica set failover, etc.)
26 the operation is safely retried once. If retryreads is false in the
27 URI (see mongoc_uri_t) the retry behavior does not apply.
28
30 • client: A mongoc_client_t.
31
32 • error: An optional location for a bson_error_t or NULL.
33
35 Errors are propagated via the error parameter.
36
38 A NULL terminated vector of NULL-byte terminated strings. The result
39 should be freed with bson_strfreev().
40
41 NULL is returned upon failure and error is set.
42
44 MongoDB, Inc
45
47 2017-present, MongoDB, Inc
48
49
50
51
521.24.3 Aug 17, 202M3ONGOC_CLIENT_GET_DATABASE_NAMES(3)