aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/exceptions.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-11-29 11:32:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-11-29 11:32:44 +0200
commitbfe99354380c4a3a77a181cd8abaacab09a45fb5 (patch)
treef61e573df9a84fa8a0bec53a0a92d110bab82526 /odb/mysql/exceptions.hxx
parent9ccd928f7b3d36b7be4a8dc8d180a441c9bf55e1 (diff)
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::<db>::core namespace which also imports odb::common and adds the database-specific bits. The overall idea is that one can do using namespace odb::<db>::core just like for odb::core.
Diffstat (limited to 'odb/mysql/exceptions.hxx')
-rw-r--r--odb/mysql/exceptions.hxx7
1 files changed, 7 insertions, 0 deletions
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 <odb/exceptions.hxx>
#include <odb/mysql/version.hxx>
+#include <odb/mysql/forward.hxx>
#include <odb/mysql/details/export.hxx>
@@ -66,6 +67,12 @@ namespace odb
private:
std::string what_;
};
+
+ namespace core
+ {
+ using mysql::database_exception;
+ using mysql::cli_exception;
+ }
}
}