aboutsummaryrefslogtreecommitdiff
path: root/pgsql/template/test.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'pgsql/template/test.hxx')
-rw-r--r--pgsql/template/test.hxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/pgsql/template/test.hxx b/pgsql/template/test.hxx
index 9916172..7f7bb99 100644
--- a/pgsql/template/test.hxx
+++ b/pgsql/template/test.hxx
@@ -5,4 +5,22 @@
#ifndef TEST_HXX
#define TEST_HXX
+#include <odb/core.hxx>
+
+#pragma db object
+struct object
+{
+ object (unsigned long id)
+ : id_ (id)
+ {
+ }
+
+ object ()
+ {
+ }
+
+ #pragma db id
+ unsigned long id_;
+};
+
#endif // TEST_HXX