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

WARNING:

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_database_get_collection_names_with_opts()  in  new
10          code.
11
12

SYNOPSIS

14          char **
15          mongoc_database_get_collection_names (mongoc_database_t *database,
16                                                bson_error_t *error)
17             BSON_GNUC_WARN_UNUSED_RESULT
18             BSON_GNUC_DEPRECATED_FOR (mongoc_database_get_collection_names_with_opts);
19

DESCRIPTION

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

PARAMETERS

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

ERRORS

35       Errors are propagated via the error parameter.
36

RETURNS

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

AUTHOR

43       MongoDB, Inc
44
46       2017-present, MongoDB, Inc
47
48
49
50
511.25.1                           Nov 08,MO2N0G2O3C_DATABASE_GET_COLLECTION_NAMES(3)
Impressum