aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/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
commitbfc6d29f8ef4efc48334cf0c25af433d85c21ed6 (patch)
treebf4c606068b36d53154cbbaa470e77864a2aebb0 /odb/sqlite/exceptions.hxx
parenta2914e837c6442db936fd035b49f60ee488df533 (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/sqlite/exceptions.hxx')
-rw-r--r--odb/sqlite/exceptions.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/odb/sqlite/exceptions.hxx b/odb/sqlite/exceptions.hxx
index 52a976f..a38237c 100644
--- a/odb/sqlite/exceptions.hxx
+++ b/odb/sqlite/exceptions.hxx
@@ -12,6 +12,7 @@
#include <odb/exceptions.hxx>
#include <odb/sqlite/version.hxx>
+#include <odb/sqlite/forward.hxx>
#include <odb/sqlite/details/export.hxx>
namespace odb
@@ -65,6 +66,12 @@ namespace odb
private:
std::string what_;
};
+
+ namespace core
+ {
+ using sqlite::database_exception;
+ using sqlite::cli_exception;
+ }
}
}