1MONGOC_CLIENT_GET_DATABASE_NAMESM(o3n)goDB C DriMvOeNrGOC_CLIENT_GET_DATABASE_NAMES(3)
2
3
4

NAME

6       mongoc_client_get_database_names - mongoc_client_get_database_names()
7

SYNOPSIS

9          char **
10          mongoc_client_get_database_names (mongoc_client_t *client, bson_error_t *error);
11

DEPRECATED

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

DESCRIPTION

18       This function queries the MongoDB server for a list of known databases.
19
20       This  function  is considered a retryable read operation.  Upon a tran‐
21       sient error (a network error, errors due to replica set failover, etc.)
22       the  operation  is  safely retried once.  If retryreads is false in the
23       URI (see mongoc_uri_t) the retry behavior does not apply.
24

PARAMETERS

26       · client: A mongoc_client_t.
27
28       · error: An optional location for a bson_error_t or NULL.
29

ERRORS

31       Errors are propagated via the error parameter.
32

RETURNS

34       A NULL terminated vector of NULL-byte terminated  strings.  The  result
35       should be freed with bson_strfreev().
36
37       NULL is returned upon failure and error is set.
38

AUTHOR

40       MongoDB, Inc
41
43       2017-present, MongoDB, Inc
44
45
46
47
481.15.2                           Nov 06, 201M9ONGOC_CLIENT_GET_DATABASE_NAMES(3)
Impressum