diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-07-12 18:42:17 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-07-12 18:42:17 +0200 |
commit | 5ea55acce8ae8bc0361696ed2ff413eefaf89a8e (patch) | |
tree | f3e672619b8d599bdcf9623426ebf3a00be46497 /pgsql/truncation/test.hxx | |
parent | e0ddbcc0aa0b9bf8f81efe5b017c66120f995547 (diff) |
Add PostgreSQL types and truncation tests
Diffstat (limited to 'pgsql/truncation/test.hxx')
-rw-r--r-- | pgsql/truncation/test.hxx | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pgsql/truncation/test.hxx b/pgsql/truncation/test.hxx new file mode 100644 index 0000000..0cd2852 --- /dev/null +++ b/pgsql/truncation/test.hxx @@ -0,0 +1,49 @@ +// file : mysql/truncation/test.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// author : Constantin Michael <constantin@codesynthesis.com> +// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef TEST_HXX +#define TEST_HXX + +#include <string> +#include <odb/core.hxx> + +#pragma db object table ("test") +struct object1 +{ + object1 (unsigned long id) + : id_ (id) + { + } + + object1 () + { + } + + #pragma db id + unsigned long id_; + + std::string str_; +}; + +#pragma db object table ("test") +struct object2 +{ + object2 (unsigned long id) + : id_ (id) + { + } + + object2 () + { + } + + #pragma db id + unsigned long id_; + + std::string str_; +}; + +#endif // TEST_HXX |