From ca42db0da0d12b1dcdee1cc82dbbd171131cb628 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 Jun 2010 16:57:53 +0200 Subject: Initial set of tests --- common/schema/test.hxx | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 common/schema/test.hxx (limited to 'common/schema/test.hxx') diff --git a/common/schema/test.hxx b/common/schema/test.hxx new file mode 100644 index 0000000..471d27b --- /dev/null +++ b/common/schema/test.hxx @@ -0,0 +1,58 @@ +// file : common/schema/test.hxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef TEST_HXX +#define TEST_HXX + +#include +#include + +// Table names. +// +#pragma odb object table ("TABLE_EXPLICIT") +struct table_explicit +{ + #pragma odb id + unsigned long id_; +}; + +#pragma odb object +struct table_implicit +{ + #pragma odb id + unsigned long id_; +}; + +// Column names. +// +#pragma odb object +struct column +{ + #pragma odb id + int m1; + + #pragma odb column ("foo") + int m2; + + int m_m3; + int _m4; + int m5_; + int m_; + int m__; +}; + +// Column types. +// +#pragma odb object +struct type +{ + #pragma odb id + int id; + + #pragma odb type ("INTEGER") + bool m1; +}; + +#endif // TEST_HXX -- cgit v1.1