vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function MongoClient.getCollection

Accesses a collection using an absolute path.

MongoCollection getCollection (
  string path
) @safe;

The full database.collection path must be specified. To access collections using a path relative to their database, use getDatabase in conjunction with MongoDatabase.opIndex.

Returns

MongoCollection for the given combined database and collection name (path)

Examples

auto col = client.getCollection("test.collection");
Authors

Sönke Ludwig

Copyright

© 2012 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.