kDB: Knowledge DataBase
Loading...
Searching...
No Matches
SQLCopyData.h
1#include <QSharedPointer>
2#include <kDB/Forward.h>
3
4namespace kDB::Repository::DatabaseInterface::PostgreSQL
5{
7 {
8 public:
9 SQLCopyData(const Transaction& _transaction);
11 bool writeHeader();
12 bool writeBuffer(const char* _buffer, int _size);
13 template<typename _T_>
14 bool write(_T_ _value, bool _write_size);
15 bool writeNull();
16 bool close();
17 QString errorMessage() const;
18 private:
19 template<typename _T_>
20 bool write_impl(const _T_& _value, bool _write_size);
21 char* buffer(std::size_t _size);
22 private:
23 struct Private;
24 Private* const d;
25 };
26}
Definition Transaction.h:19