1MONGOC_DATABASE_GET_COLLECTION_NAMESl(i3b)moMnOgNoGcOC_DATABASE_GET_COLLECTION_NAMES(3)
2
3
4
6 mongoc_database_get_collection_names - mongoc_database_get_collec‐
7 tion_names()
8
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
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
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
31 • database: A mongoc_database_t.
32
33 • error: An optional location for a bson_error_t or NULL.
34
36 Errors are propagated via the error parameter.
37
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
44 MongoDB, Inc
45
47 2017-present, MongoDB, Inc
48
49
50
51
521.20.0 Nov 18,MO2N0G2O1C_DATABASE_GET_COLLECTION_NAMES(3)