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

Method setMetadata

native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp:1202–1212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1200}
1201
1202void SQLiteQueryExecutor::setMetadata(std::string entryName, std::string data)
1203 const {
1204 std::string replaceMetadataSQL =
1205 "REPLACE INTO metadata (name, data) "
1206 "VALUES (?, ?);";
1207 Metadata entry{
1208 entryName,
1209 data,
1210 };
1211 replaceEntity<Metadata>(this->getConnection(), replaceMetadataSQL, entry);
1212}
1213
1214void SQLiteQueryExecutor::clearMetadata(std::string entryName) const {
1215 static std::string removeMetadataByKeySQL =

Callers 5

stampSQLiteDBUserIDMethod · 0.95
createMainCompactionMethod · 0.45
setSIWEBackupSecretsMethod · 0.45
setBackupIDMethod · 0.45

Calls 1

getConnectionMethod · 0.95

Tested by

no test coverage detected