#include <RobotAPI/libraries/armem/server/ltm/detail/mixins/MongoDBStorageMixin.h>
|
static const constexpr char * | DATA = "_data" |
|
static const constexpr char * | FOREIGN_KEY = "_foreign_key" |
|
static const constexpr char * | ID = "_id" |
|
static const constexpr char * | METADATA = "_metadata" |
|
static const constexpr char * | TYPE = "_type" |
|
Definition at line 45 of file MongoDBStorageMixin.h.
◆ MongoDBStorageMixin() [1/2]
◆ MongoDBStorageMixin() [2/2]
◆ collectionExists()
std::optional< mongocxx::collection > collectionExists |
( |
| ) |
const |
◆ configureMixin()
void configureMixin |
( |
const nlohmann::json & |
json | ) |
|
|
protected |
◆ connect()
◆ connected()
◆ databaseExists()
std::optional< mongocxx::database > databaseExists |
( |
| ) |
const |
◆ documentExists() [1/2]
std::optional< nlohmann::json > documentExists |
( |
| ) |
const |
◆ documentExists() [2/2]
std::optional< nlohmann::json > documentExists |
( |
const std::string & |
id | ) |
const |
◆ ensureCollectionExists()
mongocxx::collection ensureCollectionExists |
( |
bool |
createIfNotExistent = false | ) |
|
◆ ensureDatabaseExists()
mongocxx::database ensureDatabaseExists |
( |
bool |
createIfNotExistent = false | ) |
|
◆ ensureDocumentExists() [1/2]
nlohmann::json ensureDocumentExists |
( |
bool |
createIfNotExistent = false | ) |
|
◆ ensureDocumentExists() [2/2]
nlohmann::json ensureDocumentExists |
( |
const std::string & |
id, |
|
|
bool |
createIfNotExistent = false |
|
) |
| |
◆ ensurePreviousCollectionExists()
mongocxx::collection ensurePreviousCollectionExists |
( |
bool |
createIfNotExistent = false | ) |
|
◆ getAllDocuments()
std::vector< nlohmann::json > getAllDocuments |
( |
| ) |
const |
◆ getCollectionName()
std::string getCollectionName |
( |
| ) |
const |
◆ getDatabaseName()
std::string getDatabaseName |
( |
| ) |
const |
◆ getDocumentName()
std::string getDocumentName |
( |
| ) |
const |
◆ getPreviousCollectionName()
std::string getPreviousCollectionName |
( |
| ) |
const |
◆ getSettings()
◆ previousCollectionExists()
std::optional< mongocxx::collection > previousCollectionExists |
( |
| ) |
const |
◆ readDataFromDocument() [1/2]
nlohmann::json readDataFromDocument |
( |
| ) |
const |
◆ readDataFromDocument() [2/2]
nlohmann::json readDataFromDocument |
( |
const std::string & |
id | ) |
const |
◆ setHost()
void setHost |
( |
const std::string & |
n | ) |
|
|
protected |
◆ setMixinExportName()
void setMixinExportName |
( |
const std::string & |
n | ) |
|
|
protected |
◆ setMixinMemoryID()
◆ setPassword()
void setPassword |
( |
const std::string & |
n | ) |
|
|
protected |
◆ setPort()
void setPort |
( |
const unsigned int |
n | ) |
|
|
protected |
◆ setUser()
void setUser |
( |
const std::string & |
n | ) |
|
|
protected |
◆ start()
◆ stop()
◆ writeDataToDocument() [1/2]
void writeDataToDocument |
( |
const nlohmann::json & |
data | ) |
|
◆ writeDataToDocument() [2/2]
void writeDataToDocument |
( |
const std::string & |
id, |
|
|
const nlohmann::json & |
data |
|
) |
| |
◆ writeForeignKeyToPreviousDocument() [1/2]
void writeForeignKeyToPreviousDocument |
( |
| ) |
|
◆ writeForeignKeyToPreviousDocument() [2/2]
void writeForeignKeyToPreviousDocument |
( |
const nlohmann::json & |
type | ) |
|
◆ DATA
const constexpr char* DATA = "_data" |
|
staticconstexprprotected |
◆ FOREIGN_KEY
const constexpr char* FOREIGN_KEY = "_foreign_key" |
|
staticconstexprprotected |
◆ ID
const constexpr char* ID = "_id" |
|
staticconstexprprotected |
◆ METADATA
const constexpr char* METADATA = "_metadata" |
|
staticconstexprprotected |
◆ TYPE
const constexpr char* TYPE = "_type" |
|
staticconstexprprotected |
The documentation for this class was generated from the following files: