generated from Sithas/conan_template
Рабочая сборка второго executor'а
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user