Created an interface for the Db class

This commit is contained in:
emeric
2025-07-09 00:29:16 +02:00
parent ecdfa8d68d
commit 764c92698c
106 changed files with 315 additions and 284 deletions
@@ -24,7 +24,7 @@
#include "core/ILogger.hpp"
#include "core/Random.hpp"
#include "database/Artist.hpp"
#include "database/Db.hpp"
#include "database/IDb.hpp"
#include "database/Release.hpp"
#include "database/Session.hpp"
#include "database/Track.hpp"
@@ -37,7 +37,7 @@ namespace lms::recommendation
{
using namespace db;
std::unique_ptr<IEngine> createFeaturesEngine(Db& db)
std::unique_ptr<IEngine> createFeaturesEngine(db::IDb& db)
{
return std::make_unique<FeaturesEngine>(db);
}