Move things from crosslang to here

This commit is contained in:
2025-06-21 23:05:12 -05:00
parent 71a2c83e5a
commit 81f0d3be2e
41 changed files with 275029 additions and 96 deletions

View File

@ -0,0 +1,18 @@
#pragma once
#include "TessesFramework/Filesystem/VFSFix.hpp"
#include "TessesFramework/Filesystem/VFS.hpp"
#include <optional>
namespace Tesses::Framework::Serialization {
class SQLiteDatabase {
private:
void* data;
static int collector(void* user, int count,char** vals, char** keys);
public:
SQLiteDatabase(Tesses::Framework::Filesystem::VFSPath path);
static std::string Escape(std::string text);
static bool IsEnabled();
void Exec(std::string statement,std::vector<std::vector<std::pair<std::string,std::optional<std::string>>>>& results);
std::vector<std::vector<std::pair<std::string,std::optional<std::string>>>> Exec(std::string statement);
~SQLiteDatabase();
};
}