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