diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-11-29 11:32:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-11-29 11:32:44 +0200 |
commit | bfe99354380c4a3a77a181cd8abaacab09a45fb5 (patch) | |
tree | f61e573df9a84fa8a0bec53a0a92d110bab82526 /odb/mysql/forward.hxx | |
parent | 9ccd928f7b3d36b7be4a8dc8d180a441c9bf55e1 (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/forward.hxx')
-rw-r--r-- | odb/mysql/forward.hxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/odb/mysql/forward.hxx b/odb/mysql/forward.hxx index 7530329..806ee62 100644 --- a/odb/mysql/forward.hxx +++ b/odb/mysql/forward.hxx @@ -13,6 +13,13 @@ namespace odb { namespace mysql { + 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 mysql::database; + using mysql::connection; + using mysql::connection_ptr; + using mysql::transaction; + using mysql::statement; + } + // Implementation details. // enum statement_kind |