TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
LoginDatabase.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 _LOGINDATABASE_H
19 #define _LOGINDATABASE_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 
104 
109 
112 
131 
134 
137 
145 
148 
150 };
151 
152 class TC_DATABASE_API LoginDatabaseConnection : public MySQLConnection
153 {
154 public:
156 
157  //- Constructors for sync and async connections
158  LoginDatabaseConnection(MySQLConnectionInfo& connInfo) : MySQLConnection(connInfo) { }
159  LoginDatabaseConnection(ProducerConsumerQueue<SQLOperation*>* q, MySQLConnectionInfo& connInfo) : MySQLConnection(q, connInfo) { }
160 
161  //- Loads database type specific prepared statements
162  void DoPrepareStatements() override;
163 };
164 
166 
167 #endif
Definition: LoginDatabase.h:83
Definition: LoginDatabase.h:39
Definition: LoginDatabase.h:144
Definition: LoginDatabase.h:106
Definition: LoginDatabase.h:120
#define TC_DATABASE_API
Definition: Define.h:122
Definition: LoginDatabase.h:119
Definition: LoginDatabase.h:108
Definition: LoginDatabase.h:34
Definition: LoginDatabase.h:118
Definition: LoginDatabase.h:114
Definition: LoginDatabase.h:82
Definition: LoginDatabase.h:60
Definition: LoginDatabase.h:127
Definition: LoginDatabase.h:49
Definition: LoginDatabase.h:96
Definition: LoginDatabase.h:85
Definition: LoginDatabase.h:73
Definition: LoginDatabase.h:95
Definition: LoginDatabase.h:94
LoginDatabaseConnection(ProducerConsumerQueue< SQLOperation * > *q, MySQLConnectionInfo &connInfo)
Definition: LoginDatabase.h:159
Definition: LoginDatabase.h:33
Definition: LoginDatabase.h:141
Definition: LoginDatabase.h:86
Definition: LoginDatabase.h:136
Definition: LoginDatabase.h:46
Definition: LoginDatabase.h:53
Definition: LoginDatabase.h:74
Definition: LoginDatabase.h:81
Definition: LoginDatabase.h:133
Definition: LoginDatabase.h:121
Definition: LoginDatabase.h:103
Definition: LoginDatabase.h:152
Definition: LoginDatabase.h:40
Definition: LoginDatabase.h:143
Definition: LoginDatabase.h:78
Definition: LoginDatabase.h:107
Definition: LoginDatabase.h:142
Definition: LoginDatabase.h:117
Definition: LoginDatabase.h:98
Definition: LoginDatabase.h:70
Definition: LoginDatabase.h:97
Definition: LoginDatabase.h:91
Definition: LoginDatabase.h:58
DatabaseWorkerPool< LoginDatabaseConnection > LoginDatabaseWorkerPool
Definition: LoginDatabase.h:165
Definition: LoginDatabase.h:66
Definition: LoginDatabase.h:62
Definition: LoginDatabase.h:93
Definition: LoginDatabase.h:77
Definition: LoginDatabase.h:140
Definition: LoginDatabase.h:126
Definition: LoginDatabase.h:90
Definition: LoginDatabase.h:75
Definition: LoginDatabase.h:130
Definition: LoginDatabase.h:80
Definition: LoginDatabase.h:52
Definition: LoginDatabase.h:116
Definition: LoginDatabase.h:67
Definition: LoginDatabase.h:128
Definition: LoginDatabase.h:132
Definition: LoginDatabase.h:92
Definition: LoginDatabase.h:65
Definition: LoginDatabase.h:87
Definition: LoginDatabase.h:56
Definition: LoginDatabase.h:79
Definition: LoginDatabase.h:43
Definition: LoginDatabase.h:123
Definition: LoginDatabase.h:88
Definition: LoginDatabase.h:71
Definition: LoginDatabase.h:36
Definition: LoginDatabase.h:124
Definition: LoginDatabase.h:47
LoginDatabaseStatements
Definition: LoginDatabase.h:24
Definition: LoginDatabase.h:115
Definition: LoginDatabase.h:147
Definition: LoginDatabase.h:129
Definition: LoginDatabase.h:149
Definition: LoginDatabase.h:138
Definition: LoginDatabase.h:57
Definition: LoginDatabase.h:50
Definition: LoginDatabase.h:44
Definition: LoginDatabase.h:135
LoginDatabaseConnection(MySQLConnectionInfo &connInfo)
Definition: LoginDatabase.h:158
Definition: LoginDatabase.h:125
Definition: LoginDatabase.h:100
Definition: LoginDatabase.h:110
Definition: LoginDatabase.h:105
Definition: LoginDatabase.h:61
Definition: LoginDatabase.h:101
Definition: LoginDatabase.h:113
Definition: LoginDatabase.h:139
Definition: LoginDatabase.h:54
Definition: LoginDatabase.h:69
Definition: LoginDatabase.h:89
Definition: LoginDatabase.h:64
Definition: LoginDatabase.h:146
LoginDatabaseStatements Statements
Definition: LoginDatabase.h:155
Definition: LoginDatabase.h:37
Definition: LoginDatabase.h:76
Definition: LoginDatabase.h:111
Definition: LoginDatabase.h:51
Definition: LoginDatabase.h:55
Definition: LoginDatabase.h:38
Definition: LoginDatabase.h:99
Definition: LoginDatabase.h:68
Definition: LoginDatabase.h:32
Definition: LoginDatabase.h:48
Definition: LoginDatabase.h:42
Definition: DatabaseWorkerPool.h:48
Definition: LoginDatabase.h:102
Definition: LoginDatabase.h:122
Definition: LoginDatabase.h:45
Definition: LoginDatabase.h:35
Definition: LoginDatabase.h:41
Definition: LoginDatabase.h:59
Definition: LoginDatabase.h:72
Definition: LoginDatabase.h:84
Definition: LoginDatabase.h:63