blob: 809c69b47e11e1a67fc34baee82666f3278e1279 (
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
|
// file : qt/mssql/basic/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 <QtCore/QString>
#include <QtCore/QByteArray>
#pragma db object
struct object
{
bool
operator== (const object& x) const
{
return
id_ == x.id_ &&
sstr_ == x.sstr_ &&
lstr_ == x.lstr_ &&
snstr_ == x.snstr_ &&
lnstr_ == x.lnstr_ &&
sbuf_ == x.sbuf_ &&
lbuf_ == x.lbuf_;
}
#pragma db id
QString id_;
QString sstr_;
#pragma db type ("VARCHAR(max)")
QString lstr_;
#pragma db type ("NVARCHAR(512)")
QString snstr_;
#pragma db type ("NVARCHAR(max)")
QString lnstr_;
#pragma db type ("VARBINARY(512)")
QByteArray sbuf_;
QByteArray lbuf_;
};
#endif // TEST_HXX
|