mongoc_database_get_collection(3)

mongoc_database_get_collection()

Section 3 libmongoc-doc bookworm source

Description

MONGOC_DATABASE_GET_COLLECTION

NAME

mongoc_database_get_collection - mongoc_database_get_collection()

SYNOPSIS

mongoc_collection_t *
mongoc_database_get_collection (mongoc_database_t *database,
const char *name) BSON_GNUC_WARN_UNUSED_RESULT;

Allocates a new mongoc_collection_t structure for the collection named name in database.

RETURNS

A newly allocated mongoc_collection_t that should be freed with mongoc_collection_destroy().

AUTHOR

MongoDB, Inc

COPYRIGHT

2017-present, MongoDB, Inc