TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CharacterDatabase.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 _CHARACTERDATABASE_H
19 #define _CHARACTERDATABASE_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 
63 
67 
74 
93 
157 
208 
215 
219 
222 
227 
234 
240 
243 
246 
250 
263 
272 
275 
279 
288 
294 
299 
304 
313 
318 
321 
370 
373 
376 
380 
502 
507 
512 
517 
522 
539 
562 
570 
575 
580 
596 
598 };
599 
600 class TC_DATABASE_API CharacterDatabaseConnection : public MySQLConnection
601 {
602 public:
604 
605  //- Constructors for sync and async connections
606  CharacterDatabaseConnection(MySQLConnectionInfo& connInfo) : MySQLConnection(connInfo) { }
607  CharacterDatabaseConnection(ProducerConsumerQueue<SQLOperation*>* q, MySQLConnectionInfo& connInfo) : MySQLConnection(q, connInfo) { }
608 
609  //- Loads database type specific prepared statements
610  void DoPrepareStatements() override;
611 };
612 
614 
615 #endif
Definition: CharacterDatabase.h:565
Definition: CharacterDatabase.h:388
CharacterDatabaseStatements
Definition: CharacterDatabase.h:24
Definition: CharacterDatabase.h:457
Definition: CharacterDatabase.h:174
Definition: CharacterDatabase.h:558
Definition: CharacterDatabase.h:455
Definition: CharacterDatabase.h:520
Definition: CharacterDatabase.h:537
Definition: CharacterDatabase.h:414
Definition: CharacterDatabase.h:228
Definition: CharacterDatabase.h:435
Definition: CharacterDatabase.h:525
Definition: CharacterDatabase.h:287
Definition: CharacterDatabase.h:130
Definition: CharacterDatabase.h:460
#define TC_DATABASE_API
Definition: Define.h:122
Definition: CharacterDatabase.h:106
Definition: CharacterDatabase.h:230
Definition: CharacterDatabase.h:33
Definition: CharacterDatabase.h:233
Definition: CharacterDatabase.h:505
Definition: CharacterDatabase.h:433
Definition: CharacterDatabase.h:518
Definition: CharacterDatabase.h:577
Definition: CharacterDatabase.h:564
Definition: CharacterDatabase.h:316
Definition: CharacterDatabase.h:59
Definition: CharacterDatabase.h:125
Definition: CharacterDatabase.h:473
Definition: CharacterDatabase.h:445
Definition: CharacterDatabase.h:104
Definition: CharacterDatabase.h:391
Definition: CharacterDatabase.h:154
Definition: CharacterDatabase.h:54
Definition: CharacterDatabase.h:491
Definition: CharacterDatabase.h:578
Definition: CharacterDatabase.h:417
Definition: CharacterDatabase.h:581
Definition: CharacterDatabase.h:84
Definition: CharacterDatabase.h:358
Definition: CharacterDatabase.h:311
Definition: CharacterDatabase.h:115
Definition: CharacterDatabase.h:158
Definition: CharacterDatabase.h:594
Definition: CharacterDatabase.h:207
Definition: CharacterDatabase.h:592
Definition: CharacterDatabase.h:365
Definition: CharacterDatabase.h:496
Definition: CharacterDatabase.h:118
Definition: CharacterDatabase.h:213
Definition: CharacterDatabase.h:217
Definition: CharacterDatabase.h:204
Definition: CharacterDatabase.h:133
Definition: CharacterDatabase.h:340
Definition: CharacterDatabase.h:177
Definition: CharacterDatabase.h:411
Definition: CharacterDatabase.h:201
Definition: CharacterDatabase.h:99
Definition: CharacterDatabase.h:110
Definition: CharacterDatabase.h:567
Definition: CharacterDatabase.h:440
Definition: CharacterDatabase.h:393
Definition: CharacterDatabase.h:461
Definition: CharacterDatabase.h:331
Definition: CharacterDatabase.h:309
Definition: CharacterDatabase.h:382
Definition: CharacterDatabase.h:419
Definition: CharacterDatabase.h:485
Definition: CharacterDatabase.h:277
Definition: CharacterDatabase.h:476
Definition: CharacterDatabase.h:392
Definition: CharacterDatabase.h:36
Definition: CharacterDatabase.h:429
Definition: CharacterDatabase.h:519
Definition: CharacterDatabase.h:163
Definition: CharacterDatabase.h:194
Definition: CharacterDatabase.h:132
Definition: CharacterDatabase.h:95
Definition: CharacterDatabase.h:390
CharacterDatabaseStatements Statements
Definition: CharacterDatabase.h:603
Definition: CharacterDatabase.h:483
Definition: CharacterDatabase.h:292
Definition: CharacterDatabase.h:223
Definition: CharacterDatabase.h:72
Definition: CharacterDatabase.h:355
Definition: CharacterDatabase.h:591
Definition: CharacterDatabase.h:339
Definition: CharacterDatabase.h:108
Definition: CharacterDatabase.h:526
Definition: CharacterDatabase.h:245
Definition: CharacterDatabase.h:176
Definition: CharacterDatabase.h:436
Definition: CharacterDatabase.h:192
Definition: CharacterDatabase.h:112
Definition: CharacterDatabase.h:324
Definition: CharacterDatabase.h:268
Definition: CharacterDatabase.h:420
Definition: CharacterDatabase.h:187
Definition: CharacterDatabase.h:553
Definition: CharacterDatabase.h:369
Definition: CharacterDatabase.h:70
Definition: CharacterDatabase.h:199
Definition: CharacterDatabase.h:379
Definition: CharacterDatabase.h:267
Definition: CharacterDatabase.h:466
Definition: CharacterDatabase.h:141
Definition: CharacterDatabase.h:556
Definition: CharacterDatabase.h:247
Definition: CharacterDatabase.h:401
Definition: CharacterDatabase.h:153
Definition: CharacterDatabase.h:416
Definition: CharacterDatabase.h:368
Definition: CharacterDatabase.h:394
Definition: CharacterDatabase.h:179
Definition: CharacterDatabase.h:83
Definition: CharacterDatabase.h:446
Definition: CharacterDatabase.h:175
Definition: CharacterDatabase.h:94
Definition: CharacterDatabase.h:490
Definition: CharacterDatabase.h:405
Definition: CharacterDatabase.h:197
Definition: CharacterDatabase.h:283
Definition: CharacterDatabase.h:584
Definition: CharacterDatabase.h:209
Definition: CharacterDatabase.h:499
Definition: CharacterDatabase.h:533
Definition: CharacterDatabase.h:238
Definition: CharacterDatabase.h:371
Definition: CharacterDatabase.h:410
Definition: CharacterDatabase.h:258
Definition: CharacterDatabase.h:541
Definition: CharacterDatabase.h:475
Definition: CharacterDatabase.h:469
Definition: CharacterDatabase.h:524
Definition: CharacterDatabase.h:448
Definition: CharacterDatabase.h:178
Definition: CharacterDatabase.h:161
Definition: CharacterDatabase.h:511
Definition: CharacterDatabase.h:39
Definition: CharacterDatabase.h:202
Definition: CharacterDatabase.h:336
Definition: CharacterDatabase.h:131
Definition: CharacterDatabase.h:456
Definition: CharacterDatabase.h:568
Definition: CharacterDatabase.h:290
Definition: CharacterDatabase.h:451
Definition: CharacterDatabase.h:255
Definition: CharacterDatabase.h:96
Definition: CharacterDatabase.h:282
Definition: CharacterDatabase.h:400
Definition: CharacterDatabase.h:542
Definition: CharacterDatabase.h:495
Definition: CharacterDatabase.h:172
Definition: CharacterDatabase.h:381
Definition: CharacterDatabase.h:536
Definition: CharacterDatabase.h:404
Definition: CharacterDatabase.h:129
Definition: CharacterDatabase.h:335
Definition: CharacterDatabase.h:550
Definition: CharacterDatabase.h:521
Definition: CharacterDatabase.h:195
Definition: CharacterDatabase.h:334
Definition: CharacterDatabase.h:113
Definition: CharacterDatabase.h:386
Definition: CharacterDatabase.h:409
Definition: CharacterDatabase.h:323
Definition: CharacterDatabase.h:343
Definition: CharacterDatabase.h:278
Definition: CharacterDatabase.h:183
Definition: CharacterDatabase.h:471
Definition: CharacterDatabase.h:437
Definition: CharacterDatabase.h:80
Definition: CharacterDatabase.h:504
Definition: CharacterDatabase.h:488
Definition: CharacterDatabase.h:413
Definition: CharacterDatabase.h:314
Definition: CharacterDatabase.h:301
Definition: CharacterDatabase.h:119
Definition: CharacterDatabase.h:486
Definition: CharacterDatabase.h:102
Definition: CharacterDatabase.h:146
Definition: CharacterDatabase.h:291
Definition: CharacterDatabase.h:500
Definition: CharacterDatabase.h:364
Definition: CharacterDatabase.h:338
Definition: CharacterDatabase.h:503
Definition: CharacterDatabase.h:431
Definition: CharacterDatabase.h:470
Definition: CharacterDatabase.h:349
Definition: CharacterDatabase.h:514
Definition: CharacterDatabase.h:442
Definition: CharacterDatabase.h:356
Definition: CharacterDatabase.h:540
Definition: CharacterDatabase.h:453
Definition: CharacterDatabase.h:588
Definition: CharacterDatabase.h:162
Definition: CharacterDatabase.h:218
Definition: CharacterDatabase.h:585
Definition: CharacterDatabase.h:117
Definition: CharacterDatabase.h:167
Definition: CharacterDatabase.h:399
Definition: CharacterDatabase.h:55
Definition: CharacterDatabase.h:189
Definition: CharacterDatabase.h:322
Definition: CharacterDatabase.h:214
Definition: CharacterDatabase.h:306
Definition: CharacterDatabase.h:444
Definition: CharacterDatabase.h:41
Definition: CharacterDatabase.h:123
Definition: CharacterDatabase.h:320
Definition: CharacterDatabase.h:56
Definition: CharacterDatabase.h:546
Definition: CharacterDatabase.h:548
Definition: CharacterDatabase.h:560
Definition: CharacterDatabase.h:572
Definition: CharacterDatabase.h:463
Definition: CharacterDatabase.h:353
Definition: CharacterDatabase.h:360
Definition: CharacterDatabase.h:142
Definition: CharacterDatabase.h:352
Definition: CharacterDatabase.h:478
Definition: CharacterDatabase.h:582
Definition: CharacterDatabase.h:81
Definition: CharacterDatabase.h:196
Definition: CharacterDatabase.h:329
Definition: CharacterDatabase.h:274
Definition: CharacterDatabase.h:186
Definition: CharacterDatabase.h:91
Definition: CharacterDatabase.h:116
Definition: CharacterDatabase.h:348
Definition: CharacterDatabase.h:545
Definition: CharacterDatabase.h:51
Definition: CharacterDatabase.h:114
Definition: CharacterDatabase.h:185
Definition: CharacterDatabase.h:64
Definition: CharacterDatabase.h:251
Definition: CharacterDatabase.h:574
Definition: CharacterDatabase.h:513
Definition: CharacterDatabase.h:587
Definition: CharacterDatabase.h:412
Definition: CharacterDatabase.h:326
Definition: CharacterDatabase.h:351
Definition: CharacterDatabase.h:330
Definition: CharacterDatabase.h:354
Definition: CharacterDatabase.h:128
Definition: CharacterDatabase.h:534
Definition: CharacterDatabase.h:295
Definition: CharacterDatabase.h:449
Definition: CharacterDatabase.h:552
Definition: CharacterDatabase.h:300
Definition: CharacterDatabase.h:297
Definition: CharacterDatabase.h:239
Definition: CharacterDatabase.h:90
Definition: CharacterDatabase.h:168
Definition: CharacterDatabase.h:46
Definition: CharacterDatabase.h:425
Definition: CharacterDatabase.h:559
Definition: CharacterDatabase.h:273
Definition: CharacterDatabase.h:474
Definition: CharacterDatabase.h:160
Definition: CharacterDatabase.h:285
Definition: CharacterDatabase.h:145
Definition: CharacterDatabase.h:563
Definition: CharacterDatabase.h:86
Definition: CharacterDatabase.h:122
Definition: CharacterDatabase.h:387
Definition: CharacterDatabase.h:98
Definition: CharacterDatabase.h:159
Definition: CharacterDatabase.h:34
Definition: CharacterDatabase.h:264
Definition: CharacterDatabase.h:547
Definition: CharacterDatabase.h:350
Definition: CharacterDatabase.h:120
Definition: CharacterDatabase.h:276
Definition: CharacterDatabase.h:171
Definition: CharacterDatabase.h:180
Definition: CharacterDatabase.h:256
Definition: CharacterDatabase.h:532
Definition: CharacterDatabase.h:597
Definition: CharacterDatabase.h:328
Definition: CharacterDatabase.h:494
Definition: CharacterDatabase.h:212
Definition: CharacterDatabase.h:557
Definition: CharacterDatabase.h:480
Definition: CharacterDatabase.h:566
Definition: CharacterDatabase.h:439
Definition: CharacterDatabase.h:73
Definition: CharacterDatabase.h:60
Definition: CharacterDatabase.h:510
Definition: CharacterDatabase.h:418
Definition: CharacterDatabase.h:403
Definition: CharacterDatabase.h:97
Definition: CharacterDatabase.h:333
Definition: CharacterDatabase.h:156
Definition: CharacterDatabase.h:342
Definition: CharacterDatabase.h:270
Definition: CharacterDatabase.h:362
Definition: CharacterDatabase.h:37
Definition: CharacterDatabase.h:280
Definition: CharacterDatabase.h:383
Definition: CharacterDatabase.h:244
Definition: CharacterDatabase.h:188
Definition: CharacterDatabase.h:482
Definition: CharacterDatabase.h:458
Definition: CharacterDatabase.h:346
Definition: CharacterDatabase.h:52
Definition: CharacterDatabase.h:489
Definition: CharacterDatabase.h:434
Definition: CharacterDatabase.h:127
Definition: CharacterDatabase.h:170
Definition: CharacterDatabase.h:363
Definition: CharacterDatabase.h:48
Definition: CharacterDatabase.h:49
Definition: CharacterDatabase.h:138
Definition: CharacterDatabase.h:454
Definition: CharacterDatabase.h:293
Definition: CharacterDatabase.h:105
Definition: CharacterDatabase.h:438
Definition: CharacterDatabase.h:111
Definition: CharacterDatabase.h:538
Definition: CharacterDatabase.h:85
Definition: CharacterDatabase.h:266
Definition: CharacterDatabase.h:252
Definition: CharacterDatabase.h:89
Definition: CharacterDatabase.h:523
Definition: CharacterDatabase.h:253
Definition: CharacterDatabase.h:366
Definition: CharacterDatabase.h:527
Definition: CharacterDatabase.h:169
Definition: CharacterDatabase.h:47
Definition: CharacterDatabase.h:481
Definition: CharacterDatabase.h:317
Definition: CharacterDatabase.h:406
Definition: CharacterDatabase.h:569
Definition: CharacterDatabase.h:421
Definition: CharacterDatabase.h:501
Definition: CharacterDatabase.h:296
Definition: CharacterDatabase.h:452
Definition: CharacterDatabase.h:344
Definition: CharacterDatabase.h:198
Definition: CharacterDatabase.h:345
Definition: CharacterDatabase.h:307
Definition: CharacterDatabase.h:543
Definition: CharacterDatabase.h:281
Definition: CharacterDatabase.h:225
Definition: CharacterDatabase.h:593
Definition: CharacterDatabase.h:347
Definition: CharacterDatabase.h:269
Definition: CharacterDatabase.h:508
Definition: CharacterDatabase.h:126
Definition: CharacterDatabase.h:58
CharacterDatabaseConnection(ProducerConsumerQueue< SQLOperation * > *q, MySQLConnectionInfo &connInfo)
Definition: CharacterDatabase.h:607
Definition: CharacterDatabase.h:40
Definition: CharacterDatabase.h:232
Definition: CharacterDatabase.h:579
Definition: CharacterDatabase.h:135
Definition: CharacterDatabase.h:137
Definition: CharacterDatabase.h:75
Definition: CharacterDatabase.h:374
Definition: CharacterDatabase.h:408
Definition: CharacterDatabase.h:375
Definition: CharacterDatabase.h:310
Definition: CharacterDatabase.h:82
Definition: CharacterDatabase.h:447
Definition: CharacterDatabase.h:191
Definition: CharacterDatabase.h:477
Definition: CharacterDatabase.h:357
Definition: CharacterDatabase.h:88
Definition: CharacterDatabase.h:44
Definition: CharacterDatabase.h:389
Definition: CharacterDatabase.h:43
Definition: CharacterDatabase.h:62
Definition: CharacterDatabase.h:443
Definition: CharacterDatabase.h:53
Definition: CharacterDatabase.h:32
Definition: CharacterDatabase.h:305
Definition: CharacterDatabase.h:259
Definition: CharacterDatabase.h:432
Definition: CharacterDatabase.h:544
Definition: CharacterDatabase.h:341
Definition: CharacterDatabase.h:69
Definition: CharacterDatabase.h:487
Definition: CharacterDatabase.h:45
Definition: CharacterDatabase.h:424
Definition: CharacterDatabase.h:155
Definition: CharacterDatabase.h:286
Definition: CharacterDatabase.h:139
Definition: CharacterDatabase.h:109
Definition: CharacterDatabase.h:241
Definition: CharacterDatabase.h:50
Definition: CharacterDatabase.h:459
Definition: CharacterDatabase.h:528
Definition: CharacterDatabase.h:509
Definition: CharacterDatabase.h:148
Definition: CharacterDatabase.h:166
Definition: CharacterDatabase.h:103
Definition: CharacterDatabase.h:426
Definition: CharacterDatabase.h:100
Definition: CharacterDatabase.h:236
Definition: CharacterDatabase.h:465
Definition: CharacterDatabase.h:484
Definition: CharacterDatabase.h:229
Definition: CharacterDatabase.h:78
Definition: CharacterDatabase.h:71
Definition: CharacterDatabase.h:407
Definition: CharacterDatabase.h:529
Definition: CharacterDatabase.h:493
Definition: CharacterDatabase.h:516
Definition: CharacterDatabase.h:479
Definition: CharacterDatabase.h:224
Definition: CharacterDatabase.h:87
Definition: CharacterDatabase.h:586
Definition: CharacterDatabase.h:551
Definition: CharacterDatabase.h:134
Definition: CharacterDatabase.h:254
Definition: CharacterDatabase.h:583
Definition: CharacterDatabase.h:124
Definition: CharacterDatabase.h:57
Definition: CharacterDatabase.h:210
Definition: CharacterDatabase.h:152
Definition: CharacterDatabase.h:464
Definition: CharacterDatabase.h:468
Definition: CharacterDatabase.h:76
Definition: CharacterDatabase.h:151
Definition: CharacterDatabase.h:173
Definition: CharacterDatabase.h:308
Definition: CharacterDatabase.h:257
Definition: CharacterDatabase.h:65
Definition: CharacterDatabase.h:181
Definition: CharacterDatabase.h:315
Definition: CharacterDatabase.h:423
Definition: CharacterDatabase.h:237
Definition: CharacterDatabase.h:531
Definition: CharacterDatabase.h:164
Definition: CharacterDatabase.h:441
Definition: CharacterDatabase.h:506
Definition: CharacterDatabase.h:303
Definition: CharacterDatabase.h:427
Definition: CharacterDatabase.h:298
Definition: CharacterDatabase.h:554
Definition: CharacterDatabase.h:492
Definition: CharacterDatabase.h:289
Definition: CharacterDatabase.h:497
Definition: CharacterDatabase.h:573
Definition: CharacterDatabase.h:367
Definition: CharacterDatabase.h:549
Definition: CharacterDatabase.h:372
Definition: CharacterDatabase.h:576
Definition: CharacterDatabase.h:377
Definition: CharacterDatabase.h:396
Definition: CharacterDatabase.h:498
Definition: CharacterDatabase.h:242
Definition: CharacterDatabase.h:261
Definition: CharacterDatabase.h:395
Definition: CharacterDatabase.h:149
Definition: CharacterDatabase.h:378
Definition: CharacterDatabase.h:422
Definition: CharacterDatabase.h:385
Definition: CharacterDatabase.h:249
Definition: CharacterDatabase.h:530
Definition: CharacterDatabase.h:337
Definition: CharacterDatabase.h:211
Definition: CharacterDatabase.h:42
Definition: CharacterDatabase.h:61
DatabaseWorkerPool< CharacterDatabaseConnection > CharacterDatabaseWorkerPool
Definition: CharacterDatabase.h:613
Definition: CharacterDatabase.h:555
Definition: CharacterDatabase.h:265
Definition: CharacterDatabase.h:398
Definition: CharacterDatabase.h:361
Definition: CharacterDatabase.h:312
Definition: CharacterDatabase.h:450
Definition: CharacterDatabase.h:107
Definition: CharacterDatabase.h:590
Definition: CharacterDatabase.h:472
Definition: CharacterDatabase.h:397
Definition: CharacterDatabase.h:325
Definition: CharacterDatabase.h:101
Definition: CharacterDatabase.h:327
Definition: CharacterDatabase.h:271
Definition: CharacterDatabase.h:203
Definition: CharacterDatabase.h:66
Definition: CharacterDatabase.h:467
Definition: CharacterDatabase.h:35
Definition: CharacterDatabase.h:319
Definition: DatabaseWorkerPool.h:48
CharacterDatabaseConnection(MySQLConnectionInfo &connInfo)
Definition: CharacterDatabase.h:606
Definition: CharacterDatabase.h:205
Definition: CharacterDatabase.h:182
Definition: CharacterDatabase.h:193
Definition: CharacterDatabase.h:260
Definition: CharacterDatabase.h:184
Definition: CharacterDatabase.h:589
Definition: CharacterDatabase.h:248
Definition: CharacterDatabase.h:600
Definition: CharacterDatabase.h:402
Definition: CharacterDatabase.h:302
Definition: CharacterDatabase.h:428
Definition: CharacterDatabase.h:147
Definition: CharacterDatabase.h:415
Definition: CharacterDatabase.h:535
Definition: CharacterDatabase.h:150
Definition: CharacterDatabase.h:515
Definition: CharacterDatabase.h:221
Definition: CharacterDatabase.h:79
Definition: CharacterDatabase.h:144
Definition: CharacterDatabase.h:231
Definition: CharacterDatabase.h:571
Definition: CharacterDatabase.h:284
Definition: CharacterDatabase.h:359
Definition: CharacterDatabase.h:430
Definition: CharacterDatabase.h:68
Definition: CharacterDatabase.h:200
Definition: CharacterDatabase.h:561
Definition: CharacterDatabase.h:384
Definition: CharacterDatabase.h:216
Definition: CharacterDatabase.h:77
Definition: CharacterDatabase.h:38
Definition: CharacterDatabase.h:140
Definition: CharacterDatabase.h:220
Definition: CharacterDatabase.h:190
Definition: CharacterDatabase.h:136
Definition: CharacterDatabase.h:143
Definition: CharacterDatabase.h:206
Definition: CharacterDatabase.h:235
Definition: CharacterDatabase.h:165
Definition: CharacterDatabase.h:262
Definition: CharacterDatabase.h:332
Definition: CharacterDatabase.h:595
Definition: CharacterDatabase.h:226
Definition: CharacterDatabase.h:462
Definition: CharacterDatabase.h:121