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

DEPRECATED

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

DESCRIPTION

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

PARAMETERS

29       · database: A mongoc_database_t.
30
31       · error: An optional location for a bson_error_t or NULL.
32

ERRORS

34       Errors are propagated via the error parameter.
35

RETURNS

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

AUTHOR

42       MongoDB, Inc
43
45       2017-present, MongoDB, Inc
46
47
48
49
501.16.2                           Feb 25,MO2N0G2O0C_DATABASE_GET_COLLECTION_NAMES(3)
Impressum