aboutsummaryrefslogtreecommitdiff
path: root/sqlite/stream/test.hxx
blob: 9189a877a4985aa8707477b87cdac62e72ac7074 (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
// file      : sqlite/stream/test.hxx
// 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