aboutsummaryrefslogtreecommitdiff
path: root/bulk/person.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bulk/person.hxx')
-rw-r--r--bulk/person.hxx28
1 files changed, 28 insertions, 0 deletions
diff --git a/bulk/person.hxx b/bulk/person.hxx
new file mode 100644
index 0000000..ac7a66b
--- /dev/null
+++ b/bulk/person.hxx
@@ -0,0 +1,28 @@
+// file : hello/person.hxx
+// copyright : not copyrighted - public domain
+
+#ifndef PERSON_HXX
+#define PERSON_HXX
+
+#include <string>
+
+#include <odb/core.hxx>
+
+#pragma db object
+class person
+{
+public:
+ #pragma db id auto
+ unsigned long id;
+
+ unsigned int num;
+
+#ifdef ODB_DATABASE_MSSQL
+ #pragma db type("VARCHAR(max)")
+#else
+ #pragma db type("CLOB")
+#endif
+ std::string str;
+};
+
+#endif // PERSON_HXX