mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-02 00:49:37 +01:00
30 lines
438 B
C++
30 lines
438 B
C++
|
#ifndef DB_INIT_H
|
||
|
#define DB_INIT_H
|
||
|
|
||
|
#if MYSQL_PRESENT
|
||
|
#include "mysql/mysql_database.h"
|
||
|
#endif
|
||
|
|
||
|
#if PGSQL_PRESENT
|
||
|
#include "postgres/pgsql_database.h"
|
||
|
#endif
|
||
|
|
||
|
#if SQLITE_PRESENT
|
||
|
#include "sqlite/sqlite3_database.h"
|
||
|
#endif
|
||
|
|
||
|
void initialize_database_backends() {
|
||
|
#if MYSQL_PRESENT
|
||
|
MysqlDatabase::_register();
|
||
|
#endif
|
||
|
|
||
|
#if PGSQL_PRESENT
|
||
|
PGSQLDatabase::_register();
|
||
|
#endif
|
||
|
|
||
|
#if SQLITE_PRESENT
|
||
|
SQLite3Database::_register();
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
#endif
|