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:
2024-06-22 18:03:54 +02:00
parent 5d457f3d4b
commit 6aa100f12c
138 changed files with 6658 additions and 12402 deletions

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2010-2021, Tomasz Sowa
* Copyright (c) 2010-2024, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -37,7 +37,6 @@
#include <vector>
#include "core/system.h"
#include "db/db.h"
#include "thread.h"
#include "tdb.h"
#include "core/winixmodeldeprecated.h"
@@ -45,19 +44,15 @@
namespace Winix
namespace Winix::Thread
{
namespace Thread
{
class ThreadInfo : public WinixModelDeprecated
{
public:
void SetDb(Db * pdb);
void SetTDb(TDb * ptdb);
void SetSystem(System * psystem);
@@ -103,12 +98,13 @@ public:
private:
Db * db;
TDb * tdb;
System * system;
std::vector<Item*> out_dir_tab;
std::vector<long> remove_answer_id_tab, repair_id_tab, repair_answer_tab;
std::vector<ThreadFiles> remove_answers_tab;
std::vector<ThreadFiles> repair_answer_tab;
std::vector<Thread> repair_threads;
Item out_item, repair_item;
//DbItemQuery iq;
@@ -116,12 +112,12 @@ private:
void RepairAnswers(long file_id);
void Repair(long file_id);
Item GetItemById(long id);
};
} // namespace
} // namespace Winix
}
#endif