1MONGOC_CLIENT_GET_DATABASE_NAMESM(o3n)goDB C DriMvOeNrGOC_CLIENT_GET_DATABASE_NAMES(3)
2
3
4
6 mongoc_client_get_database_names - mongoc_client_get_database_names()
7
9 char **
10 mongoc_client_get_database_names (mongoc_client_t *client, bson_error_t *error);
11
13 This function is deprecated and should not be used in new code.
14
15 Please use mongoc_client_get_database_names_with_opts() instead.
16
18 This function queries the MongoDB server for a list of known databases.
19
21 · client: A mongoc_client_t.
22
23 · error: An optional location for a bson_error_t or NULL.
24
26 Errors are propagated via the error parameter.
27
29 A NULL terminated vector of NULL-byte terminated strings. The result
30 should be freed with bson_strfreev().
31
32 NULL is returned upon failure and error is set.
33
35 MongoDB, Inc
36
38 2017-present, MongoDB, Inc
39
40
41
42
431.14.0 Feb 22, 201M9ONGOC_CLIENT_GET_DATABASE_NAMES(3)