Chuyển lưu trữ dữ liệu sang data base
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2026-06-17 11:16:30 +07:00
parent 4054d81aaf
commit 098e1b2b69
45 changed files with 1971 additions and 1657 deletions

View File

@@ -10,10 +10,12 @@
namespace lm {
class Database;
class StateRepository
{
public:
explicit StateRepository(std::filesystem::path data_path);
StateRepository(std::filesystem::path data_path, Database& db);
AppState& app() { return app_; }
const AppState& app() const { return app_; }
@@ -30,6 +32,7 @@ public:
private:
AppState app_;
Database& db_;
std::filesystem::path modelsDir() const;
std::filesystem::path profileFilePath(const std::string& id) const;