cOMS/database/DatabaseConnection.h
Dennis Eichhorn 4f1cbd98f9
Some checks failed
Microsoft C++ Code Analysis / Analyze (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (autobuild, c-cpp) (push) Has been cancelled
started templating
2025-03-21 01:08:09 +00:00

29 lines
511 B
C

/**
* Jingga
*
* @copyright Jingga
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
#ifndef COMS_DATABASE_CONNECTION_H
#define COMS_DATABASE_CONNECTION_H
#include "../stdlib/Types.h"
#include "../../EngineDependencies/sqlite/src/sqlite3.h"
#include "DatabaseType.h"
struct DatabaseConnection {
union {
sqlite3* db_sqlite;
sqlite3* db_pgsql;
};
DatabaseType type;
uint16 port;
char* host;
char* name; // databse name
};
#endif