aboutsummaryrefslogtreecommitdiff
path: root/odb/oracle/forward.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
commit2658e8e14e24a2d9bb57bf82c96421eb4d7a9d71 (patch)
tree043c38a404680bc593dee8f55b7a532f8a38b05a /odb/oracle/forward.hxx
parentb3826d5ff054deeb7ba22aecb242cec2dca2f93a (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/oracle/forward.hxx')
-rw-r--r--odb/oracle/forward.hxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/odb/oracle/forward.hxx b/odb/oracle/forward.hxx
index 24dbf44..e6b73e1 100644
--- a/odb/oracle/forward.hxx
+++ b/odb/oracle/forward.hxx
@@ -13,6 +13,13 @@ namespace odb
{
namespace oracle
{
+ namespace core
+ {
+ using namespace odb::common;
+ }
+
+ //
+ //
class database;
class connection;
typedef details::shared_ptr<connection> connection_ptr;
@@ -21,6 +28,15 @@ namespace odb
class transaction;
class tracer;
+ namespace core
+ {
+ using oracle::database;
+ using oracle::connection;
+ using oracle::connection_ptr;
+ using oracle::transaction;
+ using oracle::statement;
+ }
+
// Implementation details.
//
enum statement_kind