From bfe99354380c4a3a77a181cd8abaacab09a45fb5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 29 Nov 2012 11:32:44 +0200 Subject: Namespace management for static multi-database support Now in libodb the odb::core namespace is split into odb::common (database- independent stuff) and odb::core proper, which imports odb::common. Each database runtime now defines odb::::core namespace which also imports odb::common and adds the database-specific bits. The overall idea is that one can do using namespace odb::::core just like for odb::core. --- odb/mysql/exceptions.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'odb/mysql/exceptions.hxx') diff --git a/odb/mysql/exceptions.hxx b/odb/mysql/exceptions.hxx index 35f4e90..a78a1a8 100644 --- a/odb/mysql/exceptions.hxx +++ b/odb/mysql/exceptions.hxx @@ -12,6 +12,7 @@ #include #include +#include #include @@ -66,6 +67,12 @@ namespace odb private: std::string what_; }; + + namespace core + { + using mysql::database_exception; + using mysql::cli_exception; + } } } -- cgit v1.1