1MONGOC_DATABASE_GET_COLLECTION_NAMESl(i3b)moMnOgNoGcOC_DATABASE_GET_COLLECTION_NAMES(3)
2
3
4

NAME

6       mongoc_database_get_collection_names    -   mongoc_database_get_collec‐
7       tion_names()
8

SYNOPSIS

10          char **
11          mongoc_database_get_collection_names (mongoc_database_t *database,
12                                                bson_error_t *error)
13             BSON_GNUC_WARN_UNUSED_RESULT
14             BSON_GNUC_DEPRECATED_FOR (mongoc_database_get_collection_names_with_opts);
15

DEPRECATED

17       This function is deprecated and should not be used in new code.
18
19       Please use mongoc_database_get_collection_names_with_opts() instead.
20

DESCRIPTION

22       Fetches a NULL terminated array of NULL-byte terminated  char*  strings
23       containing the names of all of the collections in database.
24
25       This  function  is considered a retryable read operation.  Upon a tran‐
26       sient error (a network error, errors due to replica set failover, etc.)
27       the  operation  is  safely retried once.  If retryreads is false in the
28       URI (see mongoc_uri_t) the retry behavior does not apply.
29

PARAMETERS

31database: A mongoc_database_t.
32
33error: An optional location for a bson_error_t or NULL.
34

ERRORS

36       Errors are propagated via the error parameter.
37

RETURNS

39       A NULL terminated array of NULL terminated char* strings that should be
40       freed with bson_strfreev(). Upon failure, NULL is returned and error is
41       set.
42

AUTHOR

44       MongoDB, Inc
45
47       2017-present, MongoDB, Inc
48
49
50
51
521.23.1                           Oct 20,MO2N0G2O2C_DATABASE_GET_COLLECTION_NAMES(3)
Impressum