/*
* Ascent MMORPG Server
* Copyright (C) 2005-2007 Ascent Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
*/
#if !defined(DATABASEENV_H)
#define DATABASEENV_H
/************************************************************************/
/* Database Support Setup */
/************************************************************************/
// Define the databases that you would like the server to be compiled with here.
#define DATABASE_SUPPORT_MYSQL
//#define DATABASE_SUPPORT_PGSQL
//#define DATABASE_SUPPORT_ORACLE10
//! Other libs we depend on.
#include "Common.h"
#include "Singleton.h"
#include "Log.h"
#include "../game/CThreads.h"
//! Our own includes.
#include
#include "Database/DBCStores.h"
#include "Database/Field.h"
#include "Database/Database.h"
// Implementations
/************************************************************************/
/* MySQL */
/************************************************************************/
#ifdef DATABASE_SUPPORT_MYSQL
#include "Database/impl/MySQLDatabase.h"
#endif
/************************************************************************/
/* PostgreSQL */
/************************************************************************/
#ifdef DATABASE_SUPPORT_PGSQL
#include "Database/impl/PostgreDatabase.h"
#endif
/************************************************************************/
/* Oracle 10g */
/************************************************************************/
#ifdef DATABASE_SUPPORT_ORACLE10
//#include "Database/impl/Oracle10.h"
#endif
#endif