TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldDatabase.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the
6  * Free Software Foundation; either version 2 of the License, or (at your
7  * option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef _WORLDDATABASE_H
19 #define _WORLDDATABASE_H
20 
21 #include "DatabaseWorkerPool.h"
22 #include "MySQLConnection.h"
23 
25 {
26  /* Naming standard for defines:
27  {DB}_{SEL/INS/UPD/DEL/REP}_{Summary of data changed}
28  When updating more than one field, consider looking at the calling function
29  name for a suiting suffix.
30  */
31 
102 
104 };
105 
106 class TC_DATABASE_API WorldDatabaseConnection : public MySQLConnection
107 {
108 public:
110 
111  //- Constructors for sync and async connections
112  WorldDatabaseConnection(MySQLConnectionInfo& connInfo) : MySQLConnection(connInfo) { }
113  WorldDatabaseConnection(ProducerConsumerQueue<SQLOperation*>* q, MySQLConnectionInfo& connInfo) : MySQLConnection(q, connInfo) { }
114 
115  //- Loads database type specific prepared statements
116  void DoPrepareStatements() override;
117 };
118 
120 
121 #endif
#define TC_DATABASE_API
Definition: Define.h:122
Definition: WorldDatabase.h:74
Definition: WorldDatabase.h:39
Definition: WorldDatabase.h:93
Definition: WorldDatabase.h:36
Definition: WorldDatabase.h:66
Definition: WorldDatabase.h:73
Definition: WorldDatabase.h:101
Definition: WorldDatabase.h:58
Definition: WorldDatabase.h:97
Definition: WorldDatabase.h:49
Definition: WorldDatabase.h:84
Definition: WorldDatabase.h:44
Definition: WorldDatabase.h:65
Definition: WorldDatabase.h:96
Definition: WorldDatabase.h:64
Definition: WorldDatabase.h:54
Definition: WorldDatabase.h:89
Definition: WorldDatabase.h:75
Definition: WorldDatabase.h:38
Definition: WorldDatabase.h:60
Definition: WorldDatabase.h:91
Definition: WorldDatabase.h:85
Definition: WorldDatabase.h:86
Definition: WorldDatabase.h:32
Definition: WorldDatabase.h:37
Definition: WorldDatabase.h:53
Definition: WorldDatabase.h:50
Definition: WorldDatabase.h:67
Definition: WorldDatabase.h:71
Definition: WorldDatabase.h:103
Definition: WorldDatabase.h:63
Definition: WorldDatabase.h:94
Definition: WorldDatabase.h:42
Definition: WorldDatabase.h:34
Definition: WorldDatabase.h:40
Definition: WorldDatabase.h:92
Definition: WorldDatabase.h:35
WorldDatabaseConnection(MySQLConnectionInfo &connInfo)
Definition: WorldDatabase.h:112
Definition: WorldDatabase.h:61
Definition: WorldDatabase.h:77
Definition: WorldDatabase.h:78
Definition: WorldDatabase.h:68
DatabaseWorkerPool< WorldDatabaseConnection > WorldDatabaseWorkerPool
Definition: WorldDatabase.h:119
Definition: WorldDatabase.h:99
Definition: WorldDatabase.h:57
WorldDatabaseStatements Statements
Definition: WorldDatabase.h:109
Definition: WorldDatabase.h:51
Definition: WorldDatabase.h:98
Definition: WorldDatabase.h:72
Definition: WorldDatabase.h:46
Definition: WorldDatabase.h:59
Definition: WorldDatabase.h:81
Definition: WorldDatabase.h:56
Definition: WorldDatabase.h:69
Definition: WorldDatabase.h:87
Definition: WorldDatabase.h:45
Definition: WorldDatabase.h:48
Definition: WorldDatabase.h:100
Definition: WorldDatabase.h:95
Definition: WorldDatabase.h:83
Definition: WorldDatabase.h:79
Definition: WorldDatabase.h:88
Definition: WorldDatabase.h:82
Definition: WorldDatabase.h:47
Definition: WorldDatabase.h:55
Definition: WorldDatabase.h:41
Definition: WorldDatabase.h:90
WorldDatabaseStatements
Definition: WorldDatabase.h:24
Definition: WorldDatabase.h:70
Definition: WorldDatabase.h:43
Definition: WorldDatabase.h:62
Definition: WorldDatabase.h:106
WorldDatabaseConnection(ProducerConsumerQueue< SQLOperation * > *q, MySQLConnectionInfo &connInfo)
Definition: WorldDatabase.h:113
Definition: DatabaseWorkerPool.h:48
Definition: WorldDatabase.h:33
Definition: WorldDatabase.h:80
Definition: WorldDatabase.h:52
Definition: WorldDatabase.h:76