aboutsummaryrefslogtreecommitdiff
path: root/mysql/template
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-13 10:42:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-13 10:42:46 +0200
commita9d527ffd7e4a2222d5e80c8110f092af0cb5a74 (patch)
treecd190434be960f8bbb8547619b8b97265d844ed9 /mysql/template
parentc85f0af82c3abf2e7d2dfa76351a59d9884395c0 (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 'mysql/template')
-rw-r--r--mysql/template/test.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysql/template/test.hxx b/mysql/template/test.hxx
index c71a962..abac96e 100644
--- a/mysql/template/test.hxx
+++ b/mysql/template/test.hxx
@@ -8,7 +8,7 @@
#include <odb/core.hxx>
-#pragma odb object
+#pragma db object
struct object
{
object (unsigned long id)
@@ -20,7 +20,7 @@ struct object
{
}
- #pragma odb id
+ #pragma db id
unsigned long id_;
};