diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-08-14 09:37:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-11 10:29:50 +0200 |
commit | 0d0e4b23176f0b55d7948ffef9b9ffdad6a95973 (patch) | |
tree | b72d34281441dbd959fe48ec1d60117a17b29e37 /bulk/person.hxx | |
parent | 51a01cfebf933d270bf7b7fadb0fb3ca3b7a4cd5 (diff) |
Draft implementation for INSERT
Diffstat (limited to 'bulk/person.hxx')
-rw-r--r-- | bulk/person.hxx | 28 |
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 |