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) 2008-2022, Tomasz Sowa
* Copyright (c) 2008-2024, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -33,9 +33,7 @@
*/
#include "templates.h"
#include "core/misc.h"
#include "core/plugin.h"
#include "core/textstream.h"
#include "functions/functions.h"
namespace Winix
@@ -75,7 +73,6 @@ const HtmlTextStream empty_stream;
// en empty stack item for templates functions
Ezc::Stack empty_stack;
Db * db = nullptr;
Cur * cur = nullptr;
Config * config = nullptr;
System * system = nullptr;
@@ -481,16 +478,6 @@ void Templates::CreateFunctions()
ezc_functions.Insert("server_mode_is", server_mode_is);
/*
slog
*/
ezc_functions.Insert("slog_tab", slog_tab);
ezc_functions.Insert("slog_tab_is_info", slog_tab_is_info);
ezc_functions.Insert("slog_tab_is_warning", slog_tab_is_warning);
ezc_functions.Insert("slog_tab_is_error", slog_tab_is_error);
ezc_functions.Insert("slog_tab_print", slog_tab_print);
/*
stat
*/
@@ -1021,11 +1008,6 @@ void Templates::SetCur(Cur * pcur)
void Templates::SetDb(Db * pdb)
{
TemplatesFunctions::db = pdb;
}
void Templates::SetSystem(System * psystem)
{