aboutsummaryrefslogtreecommitdiff
path: root/libcommon/common/concrete.hxx
blob: 84bf4f081947cb7a9a6712408aae8997d4f0507e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// file      : libcommon/common/concrete.hxx
// copyright : Copyright (c) 2005-2017 Code Synthesis Tools CC
// license   : GNU GPL v2; see accompanying LICENSE file

#ifndef LIBCOMMON_COMMON_CONCRETE_HXX
#define LIBCOMMON_COMMON_CONCRETE_HXX

#include <common/config.hxx>

// Namespace alias for the concrete database namespace.
//
#if defined(DATABASE_MYSQL)

#include <odb/mysql/database.hxx>
#include <odb/mysql/transaction.hxx>

namespace odb_db = odb::mysql;

#elif defined(DATABASE_SQLITE)

#include <odb/sqlite/database.hxx>
#include <odb/sqlite/transaction.hxx>

namespace odb_db = odb::sqlite;

#elif defined(DATABASE_PGSQL)

#include <odb/pgsql/database.hxx>
#include <odb/pgsql/transaction.hxx>

namespace odb_db = odb::pgsql;

#elif defined(DATABASE_ORACLE)

#include <odb/oracle/database.hxx>
#include <odb/oracle/transaction.hxx>

namespace odb_db = odb::oracle;

#elif defined(DATABASE_MSSQL)

#include <odb/mssql/database.hxx>
#include <odb/mssql/transaction.hxx>

namespace odb_db = odb::mssql;

#elif defined(DATABASE_COMMON)

// Fallback to common interface.
//
#include <odb/database.hxx>
#include <odb/transaction.hxx>

namespace odb_db = odb;

#endif

#endif // LIBCOMMON_COMMON_CONCRETE_HXX