diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-13 10:42:46 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-13 10:42:46 +0200 |
commit | a9d527ffd7e4a2222d5e80c8110f092af0cb5a74 (patch) | |
tree | cd190434be960f8bbb8547619b8b97265d844ed9 /common/auto/test.hxx | |
parent | c85f0af82c3abf2e7d2dfa76351a59d9884395c0 (diff) |
Change pragma syntax
Change odb pragma namespace to db. Use qualifiers (object, value, and member)
to specify type/member name. Add support for mapping C++ types to db types.
Diffstat (limited to 'common/auto/test.hxx')
-rw-r--r-- | common/auto/test.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/auto/test.hxx b/common/auto/test.hxx index c23027e..8c16a21 100644 --- a/common/auto/test.hxx +++ b/common/auto/test.hxx @@ -10,7 +10,7 @@ #include <odb/core.hxx> -#pragma odb object +#pragma db object struct object { object (const std::string& str) @@ -18,7 +18,7 @@ struct object { } - #pragma odb auto id + #pragma db auto id unsigned long id_; std::string str_; |