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 collectiion name(path)

Examples

auto col = client.getCollection("test.collection");
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.