|
Namespaces | |
detail | |
Functions | |
std::optional< mongocxx::collection > | collectionExists (mongocxx::database &db, const std::string &collectionName) |
std::optional< mongocxx::database > | databaseExists (mongocxx::client &client, const std::string &databaseName) |
std::optional< nlohmann::json > | documentExists (mongocxx::collection &collection, const nlohmann::json &json) |
mongocxx::collection | ensureCollectionExists (mongocxx::database &db, const std::string &collectionName, bool createIfNotExistent) |
mongocxx::database | ensureDatabaseExists (mongocxx::client &client, const std::string &databaseName, bool createIfNotExistent) |
nlohmann::json | ensureDocumentExists (mongocxx::collection &collection, const nlohmann::json &json, bool createIfNotExistent) |
std::vector< nlohmann::json > | getAllDocuments (mongocxx::collection &collection) |
nlohmann::json | readDataFromDocument (mongocxx::collection &collection, const nlohmann::json &json) |
std::string | toCollectionName (const armem::MemoryID &id) |
std::string | toDocumentID (const armem::MemoryID &id) |
void | writeDataToDocument (mongocxx::collection &collection, const nlohmann::json &query, const nlohmann::json &update) |
std::optional< mongocxx::collection > collectionExists | ( | mongocxx::database & | db, |
const std::string & | collectionName | ||
) |
std::optional< mongocxx::database > databaseExists | ( | mongocxx::client & | client, |
const std::string & | databaseName | ||
) |
std::optional< nlohmann::json > documentExists | ( | mongocxx::collection & | collection, |
const nlohmann::json & | json | ||
) |
Definition at line 175 of file mongodb.cpp.
mongocxx::collection ensureCollectionExists | ( | mongocxx::database & | db, |
const std::string & | collectionName, | ||
bool | createIfNotExistent | ||
) |
Definition at line 121 of file mongodb.cpp.
mongocxx::database ensureDatabaseExists | ( | mongocxx::client & | client, |
const std::string & | databaseName, | ||
bool | createIfNotExistent | ||
) |
Definition at line 94 of file mongodb.cpp.
nlohmann::json ensureDocumentExists | ( | mongocxx::collection & | collection, |
const nlohmann::json & | json, | ||
bool | createIfNotExistent | ||
) |
Definition at line 181 of file mongodb.cpp.
std::vector< nlohmann::json > getAllDocuments | ( | mongocxx::collection & | collection | ) |
Definition at line 239 of file mongodb.cpp.
nlohmann::json readDataFromDocument | ( | mongocxx::collection & | collection, |
const nlohmann::json & | json | ||
) |
Definition at line 210 of file mongodb.cpp.
std::string toCollectionName | ( | const armem::MemoryID & | id | ) |
Definition at line 150 of file mongodb.cpp.
std::string toDocumentID | ( | const armem::MemoryID & | id | ) |
Definition at line 138 of file mongodb.cpp.
void writeDataToDocument | ( | mongocxx::collection & | collection, |
const nlohmann::json & | query, | ||
const nlohmann::json & | update | ||
) |
Definition at line 221 of file mongodb.cpp.