1MONGOC_DATABASE_FIND_COLLECTIONS(3)libmongocMONGOC_DATABASE_FIND_COLLECTIONS(3)
2
3
4

NAME

6       mongoc_database_find_collections - mongoc_database_find_collections()
7

SYNOPSIS

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

DEPRECATED

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

DESCRIPTION

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

PARAMETERS

30database: A mongoc_database_t.
31
32filter:  A  matcher used by the server to filter the returned collec‐
33         tions. May be NULL.
34
35error: An optional location for a bson_error_t or NULL.
36

ERRORS

38       Errors are propagated via the error parameter.
39

RETURNS

41       A cursor where each result corresponds to the  server's  representation
42       of a collection in this database.
43

AUTHOR

45       MongoDB, Inc
46
48       2017-present, MongoDB, Inc
49
50
51
52
531.17.6                           Jun 03, 202M1ONGOC_DATABASE_FIND_COLLECTIONS(3)
Impressum