kDB: Knowledge DataBase
Loading...
Searching...
No Matches
kdb
kDB
Repository
DatabaseInterface
PostgreSQL
SQLReadData.h
1
#include <QSharedPointer>
2
3
#include <kDB/Forward.h>
4
5
namespace
kDB::Repository::DatabaseInterface::PostgreSQL
6
{
7
class
SQLReadData
8
{
9
public
:
10
class
Buffer
11
{
12
friend
class
SQLReadData
;
13
public
:
14
Buffer
();
15
Buffer
(
const
Buffer
& _rhs);
16
Buffer
& operator=(
const
Buffer
& _rhs);
17
~Buffer
();
18
const
char
* data()
const
;
19
std::size_t size()
const
;
20
QByteArray toByteArray()
const
;
21
bool
isNull()
const
;
22
private
:
23
struct
Private
;
24
QSharedPointer<Private>
d;
25
};
26
public
:
27
enum
Status
28
{
29
Open,
30
Close,
31
Failed
32
};
33
public
:
34
SQLReadData
(
const
Transaction
& _transaction);
35
~SQLReadData
();
36
Buffer readBuffer();
37
Status status()
const
;
38
QString errorMessage()
const
;
39
bool
readHeader();
40
template
<
typename
_T_>
41
_T_ read(
bool
_read_size);
42
bool
readNull();
43
private
:
44
const
char
* readData(std::size_t _len);
45
template
<
typename
_T_>
46
_T_ read_impl(
bool
_read_size);
47
struct
Private;
48
Private*
const
d;
49
};
50
}
// namespace kDB::Repository::DatabaseInterface::PostgreSQL
QSharedPointer
Definition
Forward.h:6
kDB::Repository::DatabaseInterface::PostgreSQL::SQLReadData::Buffer
Definition
SQLReadData.h:11
kDB::Repository::DatabaseInterface::PostgreSQL::SQLReadData
Definition
SQLReadData.h:8
kDB::Repository::Transaction
Definition
Transaction.h:19
kDB::Repository::DatabaseInterface::PostgreSQL::SQLReadData::Buffer::Private
Definition
SQLReadData.cpp:11
Generated by
1.12.0