From 79e1e744a2f306f9c04b0cda3058e9ed40d8421c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 18 Feb 2011 10:42:41 +0200 Subject: Add odb::core namespace to be used in using-directives Port all the examples and tests. --- odb/exceptions.hxx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'odb/exceptions.hxx') diff --git a/odb/exceptions.hxx b/odb/exceptions.hxx index d17ebb7..84ec133 100644 --- a/odb/exceptions.hxx +++ b/odb/exceptions.hxx @@ -89,6 +89,25 @@ namespace odb struct LIBODB_EXPORT database_exception: odb::exception { }; + + namespace core + { + using odb::null_pointer; + + using odb::already_in_transaction; + using odb::not_in_transaction; + using odb::transaction_already_finalized; + + using odb::already_in_session; + using odb::not_in_session; + using odb::const_object; + + using odb::deadlock; + using odb::object_not_persistent; + using odb::object_already_persistent; + using odb::result_not_cached; + using odb::database_exception; + } } #include -- cgit v1.1