aboutsummaryrefslogtreecommitdiff
path: root/common/prepared/test.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-10-04 11:33:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-10-19 11:41:11 +0200
commit3fd1098c70a36cdffa256b6d9fd721cf95c6f482 (patch)
tree0001b0c1d5c5dd73800439f2739e752294cff7b3 /common/prepared/test.hxx
parent3d1969a43fce72dd50044c5eada38557f3f200bd (diff)
Initial support for prepared queries
Diffstat (limited to 'common/prepared/test.hxx')
-rw-r--r--common/prepared/test.hxx26
1 files changed, 26 insertions, 0 deletions
diff --git a/common/prepared/test.hxx b/common/prepared/test.hxx
new file mode 100644
index 0000000..734b138
--- /dev/null
+++ b/common/prepared/test.hxx
@@ -0,0 +1,26 @@
+// file : common/prepared/test.hxx
+// copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef TEST_HXX
+#define TEST_HXX
+
+#include <string>
+
+#include <odb/core.hxx>
+
+#pragma db object
+struct person
+{
+ person () {}
+ person (const std::string& name, unsigned short age)
+ : name_ (name), age_ (age) {}
+
+ #pragma db id auto
+ unsigned long id_;
+
+ std::string name_;
+ unsigned short age_;
+};
+
+#endif // TEST_HXX