WIP: remove the old database abstraction layer
remove such classes: - DbBase - DbConn - DbTextStream - Db while here: - remove: TextStream, SLog, TexTextStream
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2016, Tomasz Sowa
|
||||
* Copyright (c) 2016-2024, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -37,42 +37,25 @@
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "db/dbbase.h"
|
||||
#include "core/dirs.h"
|
||||
#include "registermail.h"
|
||||
|
||||
|
||||
|
||||
|
||||
namespace Winix
|
||||
namespace Winix::MailRegister
|
||||
{
|
||||
|
||||
|
||||
|
||||
namespace MailRegister
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
class MDb : public DbBase
|
||||
class MDb
|
||||
{
|
||||
public:
|
||||
|
||||
bool AddMail(int list_id, const std::wstring & mail);
|
||||
bool GetUsers(std::vector<std::wstring> & container, bool clear_container = true);
|
||||
bool AddMail(morm::ModelConnector * model_connector, int list_id, const std::wstring & mail);
|
||||
void GetUsers(morm::ModelConnector * model_connector, std::vector<RegisterMail> & container);
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
DbTextStream query;
|
||||
std::wstring mail;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
} // namespace Winix
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user