generated from Sithas/conan_template
Бор DAO и User Entity
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user