armarx::armem::server::ltm::util::mongodb::detail Namespace Reference

Functions

std::optional< nlohmann::json > contains (mongocxx::collection &coll, const nlohmann::json &value)
 
std::string escapeName (const std::string &segmentName)
 
bool insert (mongocxx::collection &coll, const nlohmann::json &value)
 
std::string unescapeName (const std::string &escapedName)
 
bool update (mongocxx::collection &coll, const nlohmann::json &query, const nlohmann::json &update)
 
bool update (mongocxx::collection &coll, const nlohmann::json &query, const std::string &vkey, const nlohmann::json &vdata)
 

Variables

const std::map< std::string, std::string > EscapeTable = {{"/", "|"}}
 

Function Documentation

◆ contains()

std::optional< nlohmann::json > contains ( mongocxx::collection &  coll,
const nlohmann::json &  value 
)

Definition at line 53 of file mongodb.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ escapeName()

std::string escapeName ( const std::string &  segmentName)

Definition at line 18 of file mongodb.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insert()

bool insert ( mongocxx::collection &  coll,
const nlohmann::json &  value 
)

Definition at line 43 of file mongodb.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unescapeName()

std::string unescapeName ( const std::string &  escapedName)

Definition at line 30 of file mongodb.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ update() [1/2]

bool armarx::armem::server::ltm::util::mongodb::detail::update ( mongocxx::collection &  coll,
const nlohmann::json &  query,
const nlohmann::json &  update 
)

Definition at line 67 of file mongodb.cpp.

+ Here is the call graph for this function:

◆ update() [2/2]

bool armarx::armem::server::ltm::util::mongodb::detail::update ( mongocxx::collection &  coll,
const nlohmann::json &  query,
const std::string &  vkey,
const nlohmann::json &  vdata 
)

Variable Documentation

◆ EscapeTable

const std::map<std::string, std::string> EscapeTable = {{"/", "|"}}
inline

Definition at line 27 of file mongodb.h.