1MONGOC_DATABASE_HAS_COLLECTION(3)  libmongoc MONGOC_DATABASE_HAS_COLLECTION(3)
2
3
4

NAME

6       mongoc_database_has_collection - mongoc_database_has_collection()
7

SYNOPSIS

9          bool
10          mongoc_database_has_collection (mongoc_database_t *database,
11                                          const char *name,
12                                          bson_error_t *error);
13
14       This  function  checks  to  see  if  a collection exists on the MongoDB
15       server within database.
16

PARAMETERS

18       · database: A mongoc_database_t.
19
20       · name: A string containing the name of the collection.
21
22       · error: An optional location for a bson_error_t or NULL.
23

ERRORS

25       Errors are propagated via the error parameter.
26

RETURNS

28       If the function succeeds, it returns true if the collection exists  and
29       false  if  not,  and in either case the fields of error are cleared, if
30       error is not NULL.
31
32       Returns false and sets error if there are invalid arguments or a server
33       or network error.
34

AUTHOR

36       MongoDB, Inc
37
39       2017-present, MongoDB, Inc
40
41
42
43
441.16.2                           Feb 25, 2020MONGOC_DATABASE_HAS_COLLECTION(3)
Impressum