dbclient.h File Reference
#include "../pch.h"
#include "../util/message.h"
#include "../db/jsobj.h"
#include "../db/json.h"
#include <stack>
#include "dbclientcursor.h"
#include "dbclient_rs.h"
#include "undef_macros.h"
Go to the source code of this file.
Classes |
class | mongo::ConnectException |
class | mongo::ConnectionString |
class | mongo::DBClientBase |
class | mongo::DBClientConnection |
class | mongo::DBClientInterface |
class | mongo::DBClientWithCommands |
class | mongo::DBConnector |
class | mongo::Query |
Namespaces |
namespace | mongo |
Defines |
#define | QUERY(x) mongo::Query( BSON(x) ) |
Enumerations |
enum | mongo::QueryOptions {
mongo::QueryOption_CursorTailable = 1 << 1,
mongo::QueryOption_SlaveOk = 1 << 2,
mongo::QueryOption_OplogReplay = 1 << 3,
mongo::QueryOption_NoCursorTimeout = 1 << 4,
mongo::QueryOption_AwaitData = 1 << 5,
mongo::QueryOption_Exhaust = 1 << 6,
mongo::QueryOption_PartialResults = 1 << 7,
mongo::QueryOption_AllSupported = QueryOption_CursorTailable | QueryOption_SlaveOk | QueryOption_OplogReplay | QueryOption_NoCursorTimeout | QueryOption_AwaitData | QueryOption_Exhaust | QueryOption_PartialResults
} |
enum | mongo::RemoveOptions { mongo::RemoveOption_JustOne = 1 << 0,
mongo::RemoveOption_Broadcast = 1 << 1
} |
enum | mongo::UpdateOptions { mongo::UpdateOption_Upsert = 1 << 0,
mongo::UpdateOption_Multi = 1 << 1,
mongo::UpdateOption_Broadcast = 1 << 2
} |
enum | mongo::WriteConcern { mongo::W_NONE = 0,
mongo::W_NORMAL = 1
} |
Functions |
DBClientBase * | mongo::createDirectClient () |
bool | mongo::serverAlive (const string &uri) |
Detailed Description
- connect to a Mongo database as a database, from C++
Definition in file dbclient.h.
Define Documentation
Typically one uses the QUERY(...) macro to construct a Query object. Example: QUERY( "age" << 33 << "school" << "UCLA" )
Definition at line 325 of file dbclient.h.