aboutsummaryrefslogtreecommitdiff
path: root/libcommon/common/concrete.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-08 17:06:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-08 17:06:00 +0200
commitcbaa5532f056d0ad20300abbba253b065982187a (patch)
treee5cb266ec911ad81bdc4fd0a3149d9941ac4a424 /libcommon/common/concrete.hxx
parent35662787f479b93b3205310934574132609461cc (diff)
Add common/transaction test (port from tracer)
Diffstat (limited to 'libcommon/common/concrete.hxx')
-rw-r--r--libcommon/common/concrete.hxx43
1 files changed, 43 insertions, 0 deletions
diff --git a/libcommon/common/concrete.hxx b/libcommon/common/concrete.hxx
new file mode 100644
index 0000000..d3c8cc4
--- /dev/null
+++ b/libcommon/common/concrete.hxx
@@ -0,0 +1,43 @@
+// file : libcommon/common/concrete.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2005-2011 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;
+
+#endif
+
+#endif // LIBCOMMON_COMMON_CONCRETE_HXX