diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-19 11:51:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-19 11:51:17 +0200 |
commit | 7e09329a81a1859d049a0fe16ef5b879fd83b72d (patch) | |
tree | b4d1ffe4fea024afe4cf4bef4d2ff68eaa17de23 /bulk/person.hxx | |
parent | e895ea3badaba507d26d4fd8c8f95395b3c6ea01 (diff) |
Implement bulk API code generation
Diffstat (limited to 'bulk/person.hxx')
-rw-r--r-- | bulk/person.hxx | 3 |
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 |