Бор DAO и User Entity

This commit is contained in:
Антон
2025-08-25 17:22:03 +03:00
parent 8cb1023d68
commit f34c875ba4
6 changed files with 135 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#include <mysqlx/xdevapi.h>
#include "IUserDAO.h"
namespace uad
{
class MySQLUserDAO : public IUserDAO
{
mysqlx::Session& session_;
public:
explicit MySQLUserDAO(mysqlx::Session& session);
std::string Create(const User& created_user);
std::optional<User> GetByGUID(std::string guid);
std::vector<User> GetAll();
bool Update(const User& u);
bool Delete(std::string id);
};
}