upload all files

This commit is contained in:
2026-01-07 21:21:28 +08:00
parent 09d49d22c9
commit 8f53d867a2
220 changed files with 419218 additions and 0 deletions

15
Modules/dbActions.h Normal file
View File

@@ -0,0 +1,15 @@
#ifndef DBACTIONS_H
#define DBACTIONS_H
#include <sqlite3.h>
#include <iostream>
#include <string>
#include "Logger.h"
bool db_exec(sqlite3* targetDB, const char* command);
bool db_updateItem(sqlite3* targetDB, std::string targetTable, int id, std::string sector, std::string value);
bool db_rmItem(sqlite3* targetDB, std::string targetTable, int id);
bool db_addItem(sqlite3* targetDB, std::string targetTable, int id, std::string sector, std::string value);
std::string db_findIdBy(sqlite3* sourceDB, std::string sourceTable, std::string itemType, std::string value);
std::string db_getItem(sqlite3* sourceDB, std::string sourceTable, std::string itemType, int itemID);
#endif