cOMS/database/DatabaseConnection.h

29 lines
509 B
C

/**
* Jingga
*
* @copyright Jingga
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
#ifndef TOS_DATABASE_CONNECTION_H
#define TOS_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