Represents a mongo database.
More...
Represents a mongo database.
◆ MongoDatabase()
catapult::mongo::MongoDatabase::MongoDatabase |
( |
mongocxx::pool & |
connectionPool, |
|
|
const std::string & |
databaseName |
|
) |
| |
|
inlineexplicit |
Creates a mongo database around connectionPool and databaseName.
◆ operator const mongocxx::database &()
catapult::mongo::MongoDatabase::operator const mongocxx::database & |
( |
| ) |
const |
|
inline |
Gets a const reference to the underlying mongocxx database.
◆ operator mongocxx::database &()
catapult::mongo::MongoDatabase::operator mongocxx::database & |
( |
| ) |
|
|
inline |
Gets a reference to the underlying mongocxx database.
◆ operator[]() [1/2]
mongocxx::collection catapult::mongo::MongoDatabase::operator[] |
( |
const std::string & |
collectionName | ) |
|
|
inline |
Gets the mongocxx collection with name collectionName.
◆ operator[]() [2/2]
const mongocxx::collection catapult::mongo::MongoDatabase::operator[] |
( |
const std::string & |
collectionName | ) |
const |
|
inline |
Gets the const mongocxx collection with name collectionName.
◆ m_database
mongocxx::database catapult::mongo::MongoDatabase::m_database |
|
private |
◆ m_pConnection
mongocxx::pool::entry catapult::mongo::MongoDatabase::m_pConnection |
|
private |
The documentation for this class was generated from the following file: