Method MongoClient.getCollection
Prototype
MongoCollection getCollection( string path );
Return
MongoCollection for the given combined database and collectiion name(path
)
The full database.collection path
must be specified.
Example
auto col = client.getCollection("test.collection");
The opIndex function of MongoDatabase class should be used to get a relative collection name where the according database is taken into consideration.
Authors
Sönke Ludwig
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.