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/query/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/query/test.hxx')
-rw-r--r-- | common/query/test.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/query/test.hxx b/common/query/test.hxx index 59655f6..3d10cc2 100644 --- a/common/query/test.hxx +++ b/common/query/test.hxx @@ -12,7 +12,7 @@ #include <odb/core.hxx> -#pragma odb object +#pragma db object struct person { person (unsigned long id, @@ -32,17 +32,17 @@ struct person { } - #pragma odb id + #pragma db id unsigned long id_; - #pragma odb column ("first") + #pragma db column ("first") std::string first_name_; typedef std::auto_ptr<std::string> string_ptr; // @@ tmp - #pragma odb column ("middle") type ("TEXT") + #pragma db column ("middle") type ("TEXT") string_ptr middle_name_; - #pragma odb column ("last") + #pragma db column ("last") std::string last_name_; unsigned short age_; |