TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
HotfixDatabase.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 _HOTFIXDATABASE_H
19 #define _HOTFIXDATABASE_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 
34 
36 
39 
42 
44 
46 
49 
51 
54 
56 
58 
60 
63 
66 
68 
71 
74 
76 
78 
80 
83 
86 
89 
92 
94 
97 
100 
102 
105 
107 
110 
112 
114 
116 
118 
121 
124 
126 
128 
130 
132 
134 
136 
138 
141 
143 
145 
147 
149 
151 
154 
156 
158 
161 
164 
167 
169 
171 
173 
175 
177 
180 
182 
185 
187 
189 
192 
194 
196 
198 
200 
202 
205 
207 
209 
212 
214 
216 
218 
221 
224 
226 
228 
230 
232 
234 
236 
238 
240 
242 
244 
246 
249 
251 
253 
255 
257 
260 
262 
264 
267 
270 
272 
274 
277 
280 
282 };
283 
284 class TC_DATABASE_API HotfixDatabaseConnection : public MySQLConnection
285 {
286 public:
288 
289  //- Constructors for sync and async connections
290  HotfixDatabaseConnection(MySQLConnectionInfo& connInfo) : MySQLConnection(connInfo) { }
291  HotfixDatabaseConnection(ProducerConsumerQueue<SQLOperation*>* q, MySQLConnectionInfo& connInfo) : MySQLConnection(q, connInfo) { }
292 
293  //- Loads database type specific prepared statements
294  void DoPrepareStatements() override;
295 };
296 
298 
299 #endif
Definition: HotfixDatabase.h:55
Definition: HotfixDatabase.h:219
Definition: HotfixDatabase.h:193
Definition: HotfixDatabase.h:162
#define TC_DATABASE_API
Definition: Define.h:122
Definition: HotfixDatabase.h:220
HotfixDatabaseStatements
Definition: HotfixDatabase.h:24
Definition: HotfixDatabase.h:61
Definition: HotfixDatabase.h:199
Definition: HotfixDatabase.h:131
Definition: HotfixDatabase.h:127
Definition: HotfixDatabase.h:159
Definition: HotfixDatabase.h:265
Definition: HotfixDatabase.h:155
Definition: HotfixDatabase.h:245
Definition: HotfixDatabase.h:88
Definition: HotfixDatabase.h:47
Definition: HotfixDatabase.h:263
Definition: HotfixDatabase.h:153
Definition: HotfixDatabase.h:65
Definition: HotfixDatabase.h:271
Definition: HotfixDatabase.h:50
Definition: HotfixDatabase.h:276
Definition: HotfixDatabase.h:111
Definition: HotfixDatabase.h:91
Definition: HotfixDatabase.h:125
Definition: HotfixDatabase.h:213
Definition: HotfixDatabase.h:248
Definition: HotfixDatabase.h:69
Definition: HotfixDatabase.h:129
Definition: HotfixDatabase.h:90
Definition: HotfixDatabase.h:183
Definition: HotfixDatabase.h:275
Definition: HotfixDatabase.h:67
Definition: HotfixDatabase.h:117
Definition: HotfixDatabase.h:163
Definition: HotfixDatabase.h:41
Definition: HotfixDatabase.h:256
Definition: HotfixDatabase.h:77
Definition: HotfixDatabase.h:99
Definition: HotfixDatabase.h:239
Definition: HotfixDatabase.h:33
Definition: HotfixDatabase.h:106
Definition: HotfixDatabase.h:108
Definition: HotfixDatabase.h:98
Definition: HotfixDatabase.h:254
Definition: HotfixDatabase.h:273
Definition: HotfixDatabase.h:176
Definition: HotfixDatabase.h:109
Definition: HotfixDatabase.h:84
Definition: HotfixDatabase.h:45
Definition: HotfixDatabase.h:82
Definition: HotfixDatabase.h:284
Definition: HotfixDatabase.h:148
Definition: HotfixDatabase.h:211
Definition: HotfixDatabase.h:144
Definition: HotfixDatabase.h:62
Definition: HotfixDatabase.h:170
Definition: HotfixDatabase.h:72
Definition: HotfixDatabase.h:237
Definition: HotfixDatabase.h:75
Definition: HotfixDatabase.h:137
Definition: HotfixDatabase.h:166
Definition: HotfixDatabase.h:259
Definition: HotfixDatabase.h:157
HotfixDatabaseConnection(MySQLConnectionInfo &connInfo)
Definition: HotfixDatabase.h:290
Definition: HotfixDatabase.h:223
Definition: HotfixDatabase.h:64
Definition: HotfixDatabase.h:279
Definition: HotfixDatabase.h:252
Definition: HotfixDatabase.h:57
HotfixDatabaseConnection(ProducerConsumerQueue< SQLOperation * > *q, MySQLConnectionInfo &connInfo)
Definition: HotfixDatabase.h:291
Definition: HotfixDatabase.h:32
Definition: HotfixDatabase.h:281
Definition: HotfixDatabase.h:35
Definition: HotfixDatabase.h:150
Definition: HotfixDatabase.h:123
Definition: HotfixDatabase.h:146
Definition: HotfixDatabase.h:59
Definition: HotfixDatabase.h:278
Definition: HotfixDatabase.h:225
Definition: HotfixDatabase.h:179
Definition: HotfixDatabase.h:85
Definition: HotfixDatabase.h:266
Definition: HotfixDatabase.h:191
Definition: HotfixDatabase.h:215
Definition: HotfixDatabase.h:113
Definition: HotfixDatabase.h:79
Definition: HotfixDatabase.h:190
Definition: HotfixDatabase.h:203
Definition: HotfixDatabase.h:40
Definition: HotfixDatabase.h:37
Definition: HotfixDatabase.h:268
Definition: HotfixDatabase.h:135
Definition: HotfixDatabase.h:174
Definition: HotfixDatabase.h:247
Definition: HotfixDatabase.h:201
Definition: HotfixDatabase.h:261
Definition: HotfixDatabase.h:53
Definition: HotfixDatabase.h:95
Definition: HotfixDatabase.h:184
Definition: HotfixDatabase.h:165
DatabaseWorkerPool< HotfixDatabaseConnection > HotfixDatabaseWorkerPool
Definition: HotfixDatabase.h:297
Definition: HotfixDatabase.h:227
Definition: HotfixDatabase.h:186
Definition: HotfixDatabase.h:87
Definition: HotfixDatabase.h:139
Definition: HotfixDatabase.h:93
Definition: HotfixDatabase.h:168
Definition: HotfixDatabase.h:122
Definition: HotfixDatabase.h:52
Definition: HotfixDatabase.h:235
Definition: HotfixDatabase.h:204
Definition: HotfixDatabase.h:103
Definition: HotfixDatabase.h:210
Definition: HotfixDatabase.h:243
Definition: HotfixDatabase.h:101
Definition: HotfixDatabase.h:233
Definition: HotfixDatabase.h:172
Definition: HotfixDatabase.h:178
Definition: HotfixDatabase.h:188
Definition: HotfixDatabase.h:104
Definition: HotfixDatabase.h:81
Definition: HotfixDatabase.h:258
Definition: HotfixDatabase.h:208
Definition: HotfixDatabase.h:181
Definition: HotfixDatabase.h:152
Definition: HotfixDatabase.h:269
Definition: HotfixDatabase.h:73
Definition: HotfixDatabase.h:140
Definition: HotfixDatabase.h:133
Definition: HotfixDatabase.h:197
Definition: HotfixDatabase.h:70
Definition: HotfixDatabase.h:142
Definition: HotfixDatabase.h:222
Definition: HotfixDatabase.h:229
Definition: HotfixDatabase.h:120
Definition: HotfixDatabase.h:217
Definition: DatabaseWorkerPool.h:48
Definition: HotfixDatabase.h:160
Definition: HotfixDatabase.h:231
Definition: HotfixDatabase.h:115
HotfixDatabaseStatements Statements
Definition: HotfixDatabase.h:287
Definition: HotfixDatabase.h:250
Definition: HotfixDatabase.h:206
Definition: HotfixDatabase.h:48
Definition: HotfixDatabase.h:38
Definition: HotfixDatabase.h:195
Definition: HotfixDatabase.h:119
Definition: HotfixDatabase.h:241
Definition: HotfixDatabase.h:43
Definition: HotfixDatabase.h:96