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