generated from Sithas/conan_template
DAO - Полное завершение класса
This commit is contained in:
@@ -105,9 +105,16 @@ bool MySQLUserDAO::Update(const User& u)
|
||||
return !!res.getAffectedItemsCount();
|
||||
}
|
||||
|
||||
bool MySQLUserDAO::Delete(string id)
|
||||
bool MySQLUserDAO::Delete(string uuid)
|
||||
{
|
||||
return false;
|
||||
auto schema = session_.getSchema("up_and_down");
|
||||
auto table = schema.getTable("users");
|
||||
mysqlx::Result res = table.remove()
|
||||
.where("uuid = :uuid")
|
||||
.bind("uuid", uuid)
|
||||
.execute();
|
||||
|
||||
return !!res.getAffectedItemsCount();
|
||||
}
|
||||
|
||||
std::optional<User> MySQLUserDAO::GetSingleUserBySQLResult(mysqlx::SqlResult&& sql_result)
|
||||
|
||||
Reference in New Issue
Block a user