aboutsummaryrefslogtreecommitdiff
path: root/bulk/person.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-11-19 11:51:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-11-19 11:51:17 +0200
commit7e09329a81a1859d049a0fe16ef5b879fd83b72d (patch)
treeb4d1ffe4fea024afe4cf4bef4d2ff68eaa17de23 /bulk/person.hxx
parente895ea3badaba507d26d4fd8c8f95395b3c6ea01 (diff)
Implement bulk API code generation
Diffstat (limited to 'bulk/person.hxx')
-rw-r--r--bulk/person.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/bulk/person.hxx b/bulk/person.hxx
index ac7a66b..177d4ce 100644
--- a/bulk/person.hxx
+++ b/bulk/person.hxx
@@ -8,13 +8,14 @@
#include <odb/core.hxx>
-#pragma db object
+#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