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
9 WARNING:
10 Deprecated since version 1.9.0: This function is deprecated and
11 should not be used in new code.
12
13 Please use mongoc_database_get_collection_names_with_opts() in new
14 code.
15
16
18 char **
19 mongoc_database_get_collection_names (mongoc_database_t *database,
20 bson_error_t *error)
21 BSON_GNUC_WARN_UNUSED_RESULT
22 BSON_GNUC_DEPRECATED_FOR (mongoc_database_get_collection_names_with_opts);
23
25 Fetches a NULL terminated array of NULL-byte terminated char* strings
26 containing the names of all of the collections in database.
27
28 This function is considered a retryable read operation. Upon a tran‐
29 sient error (a network error, errors due to replica set failover, etc.)
30 the operation is safely retried once. If retryreads is false in the
31 URI (see mongoc_uri_t) the retry behavior does not apply.
32
34 • database: A mongoc_database_t.
35
36 • error: An optional location for a bson_error_t or NULL.
37
39 Errors are propagated via the error parameter.
40
42 A NULL terminated array of NULL terminated char* strings that should be
43 freed with bson_strfreev(). Upon failure, NULL is returned and error is
44 set.
45
47 MongoDB, Inc
48
50 2017-present, MongoDB, Inc
51
52
53
54
551.24.3 Aug 17,MO2N0G2O3C_DATABASE_GET_COLLECTION_NAMES(3)