TrinityCore
WorldDatabase.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
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 "MySQLConnection.h"
22
24{
25 /* Naming standard for defines:
26 {DB}_{SEL/INS/UPD/DEL/REP}_{Summary of data changed}
27 When updating more than one field, consider looking at the calling function
28 name for a suiting suffix.
29 */
30
88
90};
91
93{
94public:
96
99
100 //- Loads database type specific prepared statements
101 void DoPrepareStatements() override;
102};
103
104#endif
#define TC_DATABASE_API
Definition: Define.h:111
uint32_t uint32
Definition: Define.h:142
ConnectionFlags
WorldDatabaseStatements
Definition: WorldDatabase.h:24
@ WORLD_DEL_EVENT_GAMEOBJECT
Definition: WorldDatabase.h:37
@ WORLD_SEL_WAYPOINT_PATH_NODE_BY_PATHID
Definition: WorldDatabase.h:58
@ WORLD_DEL_SPAWNGROUP_MEMBER
Definition: WorldDatabase.h:84
@ WORLD_INS_CONDITION
Definition: WorldDatabase.h:87
@ WORLD_INS_CREATURE_ADDON
Definition: WorldDatabase.h:65
@ MAX_WORLDDATABASE_STATEMENTS
Definition: WorldDatabase.h:89
@ WORLD_SEL_CREATURE_ADDON_BY_GUID
Definition: WorldDatabase.h:67
@ WORLD_DEL_GAME_EVENT_MODEL_EQUIP
Definition: WorldDatabase.h:77
@ WORLD_SEL_WAYPOINT_PATH_NODE_POS_FIRST_BY_PATHID
Definition: WorldDatabase.h:60
@ WORLD_UPD_CREATURE_POSITION
Definition: WorldDatabase.h:48
@ WORLD_UPD_CREATURE_NPCFLAG
Definition: WorldDatabase.h:47
@ WORLD_DEL_GAME_TELE
Definition: WorldDatabase.h:41
@ WORLD_SEL_GAMEOBJECT_TARGET
Definition: WorldDatabase.h:74
@ WORLD_INS_GRAVEYARD_ZONE
Definition: WorldDatabase.h:38
@ WORLD_SEL_GAMEOBJECT_NEAREST
Definition: WorldDatabase.h:72
@ WORLD_SEL_NPC_VENDOR_REF
Definition: WorldDatabase.h:44
@ WORLD_DEL_DISABLES
Definition: WorldDatabase.h:81
@ WORLD_SEL_CREATURE_NEAREST
Definition: WorldDatabase.h:73
@ WORLD_INS_WAYPOINT_PATH_NODE
Definition: WorldDatabase.h:53
@ WORLD_REP_LINKED_RESPAWN
Definition: WorldDatabase.h:33
@ WORLD_INS_GAME_TELE
Definition: WorldDatabase.h:40
@ WORLD_DEL_WAYPOINT_PATH_NODE
Definition: WorldDatabase.h:54
@ WORLD_UPD_GAMEOBJECT_ZONE_AREA_DATA
Definition: WorldDatabase.h:83
@ WORLD_SEL_COMMANDS
Definition: WorldDatabase.h:69
@ WORLD_INS_CREATURE_FORMATION
Definition: WorldDatabase.h:51
@ WORLD_UPD_CREATURE_MOVEMENT_TYPE
Definition: WorldDatabase.h:45
@ WORLD_UPD_CREATURE_ZONE_AREA_DATA
Definition: WorldDatabase.h:82
@ WORLD_UPD_CREATURE_ADDON_PATH
Definition: WorldDatabase.h:64
@ WORLD_DEL_GAMEOBJECT
Definition: WorldDatabase.h:36
@ WORLD_SEL_WAYPOINT_PATH_BY_PATHID
Definition: WorldDatabase.h:52
@ WORLD_DEL_CREATURE_ADDON
Definition: WorldDatabase.h:66
@ WORLD_SEL_SMART_SCRIPTS
Definition: WorldDatabase.h:35
@ WORLD_UPD_WAYPOINT_PATH_NODE
Definition: WorldDatabase.h:55
@ WORLD_UPD_CREATURE_SPAWN_TIME_SECS
Definition: WorldDatabase.h:50
@ WORLD_SEL_WAYPOINT_PATH_NODE_MAX_NODEID
Definition: WorldDatabase.h:62
@ WORLD_DEL_LINKED_RESPAWN
Definition: WorldDatabase.h:31
@ WORLD_SEL_CREATURE_TEMPLATE
Definition: WorldDatabase.h:70
@ WORLD_SEL_CREATURE_BY_ID
Definition: WorldDatabase.h:71
@ WORLD_DEL_GAME_EVENT_CREATURE
Definition: WorldDatabase.h:76
@ WORLD_INS_GAMEOBJECT
Definition: WorldDatabase.h:78
@ WORLD_UPD_WAYPOINT_PATH_NODE_POSITION
Definition: WorldDatabase.h:56
@ WORLD_SEL_WAYPOINT_PATH_NODE_MAX_PATHID
Definition: WorldDatabase.h:57
@ WORLD_DEL_CREATURE
Definition: WorldDatabase.h:68
@ WORLD_INS_DISABLES
Definition: WorldDatabase.h:80
@ WORLD_DEL_GAMEOBJECT_ADDON
Definition: WorldDatabase.h:85
@ WORLD_SEL_CREATURE_TEXT
Definition: WorldDatabase.h:34
@ WORLD_UPD_CREATURE_WANDER_DISTANCE
Definition: WorldDatabase.h:49
@ WORLD_SEL_WAYPOINT_PATH_NODE_BY_POS
Definition: WorldDatabase.h:63
@ WORLD_SEL_GUILD_REWARDS_REQ_ACHIEVEMENTS
Definition: WorldDatabase.h:86
@ WORLD_DEL_NPC_VENDOR
Definition: WorldDatabase.h:43
@ WORLD_INS_NPC_VENDOR
Definition: WorldDatabase.h:42
@ WORLD_DEL_GRAVEYARD_ZONE
Definition: WorldDatabase.h:39
@ WORLD_SEL_DISABLES
Definition: WorldDatabase.h:79
@ WORLD_SEL_WAYPOINT_PATH_NODE_POS_BY_PATHID
Definition: WorldDatabase.h:59
@ WORLD_DEL_LINKED_RESPAWN_MASTER
Definition: WorldDatabase.h:32
@ WORLD_SEL_WAYPOINT_PATH_NODE_POS_LAST_BY_PATHID
Definition: WorldDatabase.h:61
@ WORLD_INS_CREATURE
Definition: WorldDatabase.h:75
@ WORLD_UPD_CREATURE_FACTION
Definition: WorldDatabase.h:46
virtual void DoPrepareStatements()=0
WorldDatabaseStatements Statements
Definition: WorldDatabase.h:95