1MONGOC_DATABASE_FIND_COLLECTIONSM(o3n)goDB C DriMvOeNrGOC_DATABASE_FIND_COLLECTIONS(3)
2
3
4
6 mongoc_database_find_collections - mongoc_database_find_collections()
7
9 mongoc_cursor_t *
10 mongoc_database_find_collections (mongoc_database_t *database,
11 const bson_t *filter,
12 bson_error_t *error)
13 BSON_GNUC_DEPRECATED_FOR (mongoc_database_find_collections_with_opts);
14
16 This function is deprecated and should not be used in new code.
17
18 Please use mongoc_database_find_collections_with_opts() instead.
19
21 Fetches a cursor containing documents, each corresponding to a collec‐
22 tion on this 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
30 · database: A mongoc_database_t.
31
32 · filter: A matcher used by the server to filter the returned collec‐
33 tions. May be NULL.
34
35 · error: An optional location for a bson_error_t or NULL.
36
38 Errors are propagated via the error parameter.
39
41 A cursor where each result corresponds to the server's representation
42 of a collection in this database.
43
45 MongoDB, Inc
46
48 2017-present, MongoDB, Inc
49
50
51
52
531.15.2 Nov 06, 201M9ONGOC_DATABASE_FIND_COLLECTIONS(3)