GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MONGOC_CLIENT_GET_COLLECTION(3) libmongoc MONGOC_CLIENT_GET_COLLECTION(3)

mongoc_collection_t *
mongoc_client_get_collection (mongoc_client_t *client,

const char *db,
const char *collection);


Get a newly allocated mongoc_collection_t for the collection named collection in the database named db.

TIP:

Collections are automatically created on the MongoDB server upon insertion of the first document. There is no need to create a collection manually.


  • client: A mongoc_client_t.
  • db: The name of the database containing the collection.
  • collection: The name of the collection.

A newly allocated mongoc_collection_t that should be freed with mongoc_collection_destroy() when no longer in use.

MongoDB, Inc

2009-present, MongoDB, Inc.

July 3, 2025 1.30.4

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.