aboutsummaryrefslogtreecommitdiff
path: root/mssql/query/test.hxx
blob: 9553307e922888fc9a9d734ba15ecd85f15e07e0 (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
// file      : mssql/query/test.hxx
// copyright : Copyright (c) 2009-2018 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
struct object
{
  #pragma db id auto
  unsigned long id_;

  unsigned int num;

  #pragma db type ("SMALLMONEY")
  int smoney;

  #pragma db type ("MONEY")
  double money;

  #pragma db type ("VARCHAR(256)")
  std::string str;

  #pragma db type ("NVARCHAR(128)")
  std::wstring nstr;

  #pragma db type ("VARCHAR(max)")
  std::string lstr;

  #pragma db type ("NVARCHAR(max)")
  std::wstring lnstr;
};

#endif // TEST_HXX