Data_deduplication_service
Service that will use hashes to deduplicate files
dbCommon.cpp File Reference
#include "dbCommon.h"
#include <algorithm>
#include <string>
#include <memory>
#include <vector>
+ Include dependency graph for dbCommon.cpp:

Namespaces

 db_services
 db_services namespace
 

Functions

tl::expected< conPtr, returnCodes > db_services::connectIfPossible (std::string_view cString)
 
resType db_services::terminateAllDbConnections (nonTransType &noTransExec, std::string_view dbName)
 
resType db_services::checkDatabaseExistence (nonTransType &noTransExec, std::string_view dbName)
 
resType db_services::checkSchemas (trasnactionType &txn)
 
resType db_services::getEntriesForDirectory (trasnactionType &txn, std::string_view dirPath)
 
std::vector< indexType > db_services::getFileIdVector (trasnactionType &txn, std::string_view dirPath)
 
resType db_services::checkFileExistence (trasnactionType &txn, std::string_view fileName)
 
indexType db_services::getFileId (trasnactionType &txn, std::string_view fileName)
 
bool db_services::doesFileExist (trasnactionType &txn, std::string_view fileName)
 
myConnString db_services::loadConfiguration (std::string_view filename)
 
resType db_services::checkFilesExistence (trasnactionType &txn, const std::vector< std::filesystem::path > &files)
 
std::string db_services::toTsquerablePath (std::string_view path)
 
std::string db_services::fromSpacedPath (std::string_view path)
 
std::string db_services::toSpacedPath (std::string_view path)
 
resType db_services::deleteUnusedSegments (trasnactionType &txn)
 
indexType db_services::checkSegmentCount (trasnactionType &txn)
 
resType db_services::getDedupCharacteristics (trasnactionType &txn)
 
resType db_services::getFileSizes (trasnactionType &txn)
 
void db_services::printRes (resType &rss, std::ostream &out)
 
resType db_services::getTotalSchemaSizes (trasnactionType &txn)
 
tl::expected< indexType, int > db_services::getTotalFileSize (trasnactionType &txn)
 
void db_services::printRowsAffected (const resType &res)
 
resType db_services::checkTExistence (db_services::trasnactionType &txn, std::string_view fileName)
 
bool db_services::checkConnection (const conPtr &conn)
 
bool db_services::checkConnString (const myConnString &connString)