From cbaa5532f056d0ad20300abbba253b065982187a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Nov 2011 17:06:00 +0200 Subject: Add common/transaction test (port from tracer) --- libcommon/common/concrete.hxx | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 libcommon/common/concrete.hxx (limited to 'libcommon/common/concrete.hxx') 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 +// 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 + +// Namespace alias for the concrete database namespace. +// +#if defined(DATABASE_MYSQL) + +#include +#include + +namespace odb_db = odb::mysql; + +#elif defined(DATABASE_SQLITE) + +#include +#include + +namespace odb_db = odb::sqlite; + +#elif defined(DATABASE_PGSQL) + +#include +#include + +namespace odb_db = odb::pgsql; + +#elif defined(DATABASE_ORACLE) + +#include +#include + +namespace odb_db = odb::oracle; + +#endif + +#endif // LIBCOMMON_COMMON_CONCRETE_HXX -- cgit v1.1