blob: 471d27b4d92daaecab21044c3c407c9b5bf78fc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
// file : common/schema/test.hxx
// author : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef TEST_HXX
#define TEST_HXX
#include <string>
#include <odb/core.hxx>
// 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
|