blob: db2eeeae05ce2b6ce5a7949e653fc22cb8ca798b (
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
|
// file : sqlite/stream/test.hxx
// copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef TEST_HXX
#define TEST_HXX
#include <vector>
#include <odb/core.hxx>
#include <odb/nullable.hxx>
#include <odb/sqlite/text.hxx>
#include <odb/sqlite/blob.hxx>
#pragma db object
struct object
{
#pragma db id auto
unsigned long id;
odb::sqlite::text t;
#pragma db column("_123foo_bar")
odb::sqlite::blob b;
std::vector<odb::sqlite::blob> bv;
odb::nullable<odb::sqlite::blob> nb;
};
#pragma db view object(object)
struct view
{
odb::sqlite::blob b;
};
#endif // TEST_HXX
|