kDB: Knowledge DataBase
Loading...
Searching...
No Matches
BinaryInterface_traits_p.h
1namespace kDB::Repository::DatabaseInterface::PostgreSQL::BinaryInterface
2{
3 template<typename _T_>
4 struct traits;
5
6 template<>
7 struct traits<qint16>
8 {
9 static constexpr Oid inline oid() { return INT2OID; }
10 };
11
12 template<>
13 struct traits<quint16>
14 {
15 static constexpr Oid inline oid() { return INT2OID; }
16 };
17
18 template<>
19 struct traits<qint32>
20 {
21 static constexpr Oid inline oid() { return INT4OID; }
22 };
23
24 template<>
25 struct traits<quint32>
26 {
27 static constexpr Oid inline oid() { return INT4OID; }
28 };
29
30 template<>
31 struct traits<qint64>
32 {
33 static constexpr Oid inline oid() { return INT8OID; }
34 };
35
36 template<>
37 struct traits<quint64>
38 {
39 static constexpr Oid inline oid() { return INT8OID; }
40 };
41
42 template<>
43 struct traits<float>
44 {
45 static constexpr Oid inline oid() { return FLOAT4OID; }
46 };
47
48 template<>
49 struct traits<double>
50 {
51 static constexpr Oid inline oid() { return FLOAT8OID; }
52 };
53 template<>
54 struct traits<QString>
55 {
56 static constexpr Oid inline oid() { return TEXTOID; }
57 };
58 template<>
59 struct traits<QByteArray>
60 {
61 static constexpr Oid inline oid() { return BYTEAOID; }
62 };
63 template<>
64 struct traits<knowCore::BigNumber>
65 {
66 static constexpr Oid inline oid() { return NUMERICOID; }
67 };
68
69} // namespace kDB::Repository::DatabaseInterface::PostgreSQL::BinaryInterface
Class that can contains large numeric value.
Definition BigNumber.h:51