Initial commit

This commit is contained in:
user
2026-07-12 14:34:52 +04:00
commit 3abf6bd9c2
557 changed files with 68706 additions and 0 deletions
@@ -0,0 +1,23 @@
#include "file_reader.h"
#include <fstream>
#include <iostream>
#include <sstream>
// Read a SQL file
bool FileReader::read(const std::string &sqlFilePath, std::string &sql) {
// Try read the SQL file
std::ifstream file(sqlFilePath);
if (!file.is_open()) {
std::cerr << "Error opening file:" << sqlFilePath << std::endl;
return false;
}
std::stringstream buffer;
buffer << file.rdbuf();
sql = buffer.str();
file.close();
return true;
}