Files
TCPlayerbotCore/src/server/shared/Database/DatabaseEnv.h
T

47 lines
1.4 KiB
C
Raw Normal View History

2010-10-07 15:54:07 +02:00
/*
2011-01-01 15:01:13 +01:00
* Copyright (C) 2008-2011 TrinityCore <http://www.trinitycore.org/>
2010-10-07 15:54:07 +02:00
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*
* 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 2 of the License, or (at your
* option) 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 <http://www.gnu.org/licenses/>.
2009-04-25 12:53:04 -05:00
*/
2009-10-17 15:51:44 -07:00
2010-09-02 17:47:50 +02:00
#ifndef DATABASEENV_H
2009-04-25 12:53:04 -05:00
#define DATABASEENV_H
2009-10-17 15:51:44 -07:00
2009-04-25 12:53:04 -05:00
#include "Common.h"
#include "Errors.h"
#include "Log.h"
2009-10-17 15:51:44 -07:00
#include "Field.h"
#include "QueryResult.h"
2009-10-17 15:51:44 -07:00
#include "MySQLThreading.h"
2010-08-21 03:19:25 +02:00
#include "Transaction.h"
2010-08-18 02:25:52 +02:00
2009-04-25 12:53:04 -05:00
#define _LIKE_ "LIKE"
#define _TABLE_SIM_ "`"
#define _CONCAT3_(A,B,C) "CONCAT( " A " , " B " , " C " )"
#define _OFFSET_ "LIMIT %d,1"
2009-10-17 15:51:44 -07:00
2010-09-02 17:47:50 +02:00
#include "Implementation/LoginDatabase.h"
#include "Implementation/CharacterDatabase.h"
#include "Implementation/WorldDatabase.h"
2009-10-17 15:51:44 -07:00
2010-09-02 17:47:50 +02:00
extern WorldDatabaseWorkerPool WorldDatabase;
extern CharacterDatabaseWorkerPool CharacterDatabase;
extern LoginDatabaseWorkerPool LoginDatabase;
2010-08-18 02:25:52 +02:00
2009-04-25 12:53:04 -05:00
#endif