diff options
Diffstat (limited to 'sqlite/attach/test.hxx')
-rw-r--r-- | sqlite/attach/test.hxx | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sqlite/attach/test.hxx b/sqlite/attach/test.hxx new file mode 100644 index 0000000..b3b8f63 --- /dev/null +++ b/sqlite/attach/test.hxx @@ -0,0 +1,32 @@ +// file : sqlite/attach/test.hxx +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef TEST_HXX +#define TEST_HXX + +#include <odb/core.hxx> +#include <odb/nullable.hxx> + +#include <string> + +#include <odb/core.hxx> + +#pragma db object +struct object +{ + explicit + object (const std::string& s): str (s) {} + + #pragma db id auto + unsigned long id; + + #pragma db unique + std::string str; + +private: + object () {} + + friend class odb::access; +}; + +#endif // TEST_HXX |