root/trunk/src/shared/Database/DatabaseEnv.h @ 37

Revision 37, 1.7 kB (checked in by yumileroy, 17 years ago)

[svn] * svn:eol-style native set on all files that need it

Original author: Neo2003
Date: 2008-10-11 14:16:25-05:00

Line 
1/*
2 * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17 */
18
19#if !defined(DATABASEENV_H)
20#define DATABASEENV_H
21
22#include "Common.h"
23#include "Log.h"
24#include "Errors.h"
25
26#include "Database/DBCStores.h"
27#include "Database/Field.h"
28#include "Database/QueryResult.h"
29
30#ifdef DO_POSTGRESQL
31#include "Database/QueryResultPostgre.h"
32#include "Database/Database.h"
33#include "Database/DatabasePostgre.h"
34typedef DatabasePostgre DatabaseType;
35#define _LIKE_          "ILIKE"
36#define _TABLE_SIM_     "\""
37#define _CONCAT3_(A,B,C) "( " A " || " B " || " C " )"
38#else
39#include "Database/QueryResultMysql.h"
40#include "Database/QueryResultSqlite.h"
41#include "Database/Database.h"
42#include "Database/DatabaseMysql.h"
43#include "Database/DatabaseSqlite.h"
44typedef DatabaseMysql DatabaseType;
45#define _LIKE_          "LIKE"
46#define _TABLE_SIM_     "`"
47#define _CONCAT3_(A,B,C) "CONCAT( " A " , " B " , " C " )"
48#endif
49
50extern DatabaseType WorldDatabase;
51extern DatabaseType CharacterDatabase;
52extern DatabaseType loginDatabase;
53
54#endif
Note: See TracBrowser for help on using the browser.