aboutsummaryrefslogtreecommitdiff
path: root/bulk/person.hxx
blob: 177d4ce629980bfa8ecf8300738c33031607e07b (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
// file      : hello/person.hxx
// copyright : not copyrighted - public domain

#ifndef PERSON_HXX
#define PERSON_HXX

#include <string>

#include <odb/core.hxx>

#pragma db object bulk(3)
class person
{
public:
  #pragma db id auto
  unsigned long id;

  #pragma db unique
  unsigned int num;

#ifdef ODB_DATABASE_MSSQL
  #pragma db type("VARCHAR(max)")
#else
  #pragma db type("CLOB")
#endif
  std::string str;
};

#endif // PERSON_HXX