MongoConnection

Undocumented in source.

Constructors

this
this(string connectionString, string defaultUsername, string defaultPassword)

Connects to a Mongo database. You can give a username and password in the connection string if URL encoded, OR you can pass it as arguments to this constructor.

Members

Functions

delete_
void delete_(const(char)[] fullCollectionName, bool singleRemove, document selector)
Undocumented in source. Be warned that the author may not have intended to support it.
getMore
OP_REPLY getMore(const(char)[] fullCollectionName, int numberToReturn, long cursorId, int limitTotalEntries)
Undocumented in source. Be warned that the author may not have intended to support it.
insert
void insert(bool continueOnError, const(char)[] fullCollectionName, document[] documents)
Undocumented in source. Be warned that the author may not have intended to support it.
killCursors
void killCursors(const(long)[] cursorIds)
Undocumented in source. Be warned that the author may not have intended to support it.
query
OP_REPLY query(const(char)[] fullCollectionName, int numberToSkip, int numberToReturn, document query, document returnFieldsSelector, int flags, int limitTotalEntries)
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update(const(char)[] fullCollectionName, bool upsert, bool multiupdate, document selector, document update)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

defaultQueryFlags
uint defaultQueryFlags;
Undocumented in source.
maxWireVersion
WireVersion maxWireVersion;

Reported maximum wire version by the server

minWireVersion
WireVersion minWireVersion;

Reported minimum wire version by the server

socket
Socket socket;
Undocumented in source.
stream
IReceiveStream stream;
Undocumented in source.

Meta