mongoc_database_get_collection() — MongoDB C Driver 1.9.2

- MongoDB C Driver 1.9.2 »
- API Reference »
- mongoc_database_t

# mongoc_database_get_collection()

## Synopsis

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

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().

Created using Sphinx 1.6.5, based on Sphinx Readable Theme.