vibe.d beta banner
get vibe.d
0.10.0

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

Struct MongoDatabase

Represents a single database accessible through a given MongoClient.

struct MongoDatabase ;

Constructors

NameDescription
this (client, name)

Properties

NameTypeDescription
client[get] MongoClientThe client which represents the connection to the database server
name[get] stringThe name of this database

Methods

NameDescription
fsync (async) Performs a filesystem/disk sync of the database on the server.
getLastError () Retrieves the last error code (if any) from the database server.
getLog (mask) Returns recent log messages for this database from the database server.
opIndex (name) Accesses the collections of this database.
runCommand (command_and_options, errorInfo, errorFile, errorLine)
runCommandChecked (command_and_options, errorInfo, errorFile, errorLine) Generic means to run commands on the database.
runCommandUnchecked (command_and_options, errorInfo, errorFile, errorLine) Generic means to run commands on the database.
runListCommand (command_and_options, batchSize, getMoreMaxTime) Generic means to run commands on the database.
Authors

Sönke Ludwig

Copyright

© 2012-2014 Sönke Ludwig

License

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