TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DatabaseEnv.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation; either version 2 of the License, or (at your
8  * option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef DATABASEENV_H
20 #define DATABASEENV_H
21 
22 #include "Common.h"
23 #include "Errors.h"
24 #include "Log.h"
25 
26 #include "Field.h"
27 #include "QueryResult.h"
28 
29 #include "MySQLThreading.h"
30 #include "Transaction.h"
31 
32 #define _LIKE_ "LIKE"
33 #define _TABLE_SIM_ "`"
34 #define _CONCAT3_(A, B, C) "CONCAT( " A ", " B ", " C " )"
35 #define _OFFSET_ "LIMIT %d, 1"
36 
41 
50 
51 #endif
#define TC_DATABASE_API
Definition: Define.h:122
TC_DATABASE_API HotfixDatabaseWorkerPool HotfixDatabase
Accessor to the hotfix database.
Definition: DatabaseEnv.cpp:23
TC_DATABASE_API WorldDatabaseWorkerPool WorldDatabase
Accessor to the world database.
Definition: DatabaseEnv.cpp:20
TC_DATABASE_API CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
TC_DATABASE_API LoginDatabaseWorkerPool LoginDatabase
Accessor to the realm/login database.
Definition: DatabaseEnv.cpp:22
Definition: DatabaseWorkerPool.h:48