vibe.db.mongo.mongo

MongoDB and MongoCollection classes and connections.

More...

Public Imports

vibe.db.mongo.client
public import vibe.db.mongo.client;
Undocumented in source.
vibe.db.mongo.settings
public import vibe.db.mongo.settings;
Undocumented in source.

Members

Functions

connectMongoDB
MongoClient connectMongoDB(string host, ushort port)
MongoClient connectMongoDB(string host_or_url)
MongoClient connectMongoDB(MongoClientSettings settings)

Connects to a MongoDB instance.

Detailed Description

Implementation Note

The MongoDB driver implementation here is missing a number of API functions known from the JavaScript driver, but these can usually be implemented in terms of MongoDatabase.runCommand or MongoCollection.find. Since the official documentation is lacking in some places, it may be necessary to use a network sniffer to monitor what exactly needs to be sent. MongoDB has a dedicated utility for this called .

As of 2014 there is proper documentation on https://github.com/mongodb/specifications.

Meta

License

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

Authors

Sönke Ludwig