blob: 6ab0148e1edd908b68adf62e942b20af361e69f2 (
plain) (
blame)
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
|
/** Implementation of the pqxx::tablestream class.
*
* pqxx::tablestream provides optimized batch access to a database table.
*
* Copyright (c) 2000-2019, Jeroen T. Vermeulen.
*
* See COPYING for copyright license. If you did not receive a file called
* COPYING with this source code, please notify the distributor of this mistake,
* or contact the author.
*/
#include "pqxx/compiler-internal.hxx"
#include "pqxx/tablestream"
#include "pqxx/transaction"
pqxx::tablestream::tablestream(transaction_base &STrans,
const std::string &Null) :
internal::namedclass{"tablestream"},
internal::transactionfocus{STrans},
m_null{Null}
{
}
pqxx::tablestream::~tablestream() noexcept
{
}
void pqxx::tablestream::base_close()
{
if (not is_finished())
{
m_finished = true;
unregister_me();
}
}
|