Рабочая сборка второго executor'а

This commit is contained in:
Антон
2025-09-21 09:54:55 +03:00
parent ffd193ea43
commit 5cc24f0592
4 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -29,7 +29,7 @@ string MySQLUserDAO::Create(const User& created_user)
return uuid_str;
}
optional<User> MySQLUserDAO::GetByUUID(string uuid)
optional<User> MySQLUserDAO::GetByUUID(const string& uuid)
{
mysqlx::SqlResult sql_result = session_.
sql("SELECT * FROM `up_and_down`.`users` WHERE (uuid = '" + uuid +
@@ -38,7 +38,7 @@ optional<User> MySQLUserDAO::GetByUUID(string uuid)
return GetSingleUserBySQLResult(std::move(sql_result));
}
optional<User> MySQLUserDAO::GetByLogin(string login)
optional<User> MySQLUserDAO::GetByLogin(const string& login)
{
mysqlx::SqlResult sql_result = session_.
sql("SELECT * FROM `up_and_down`.`users` WHERE (login = '" + login
@@ -105,7 +105,7 @@ bool MySQLUserDAO::Update(const User& u)
return !!res.getAffectedItemsCount();
}
bool MySQLUserDAO::Delete(string uuid)
bool MySQLUserDAO::Delete(const string& uuid)
{
auto schema = session_.getSchema("up_and_down");
auto table = schema.getTable("users");