MCPcopy Create free account
hub / github.com/CommE2E/comm / getMetadata

Method getMetadata

native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp:1222–1230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1220}
1221
1222std::string SQLiteQueryExecutor::getMetadata(std::string entryName) const {
1223 std::string getMetadataByPrimaryKeySQL =
1224 "SELECT * "
1225 "FROM metadata "
1226 "WHERE name = ?;";
1227 std::unique_ptr<Metadata> entry = getEntityByPrimaryKey<Metadata>(
1228 this->getConnection(), getMetadataByPrimaryKeySQL, entryName);
1229 return (entry == nullptr) ? "" : entry->data;
1230}
1231
1232void SQLiteQueryExecutor::addOutboundP2PMessages(
1233 const std::vector<OutboundP2PMessage> &messages) const {

Callers 6

getSIWEBackupMessageFunction · 0.45
getQRAuthBackupDataMethod · 0.45
getSIWEBackupSecretsMethod · 0.45

Calls 1

getConnectionMethod · 0.95

Tested by

no test coverage detected