#include <Connection.hpp>
|
| | Connection (const std::string &user, const std::string &pass, const std::string &host, int port, const std::string &dbname) |
| |
| | ~Connection () |
| |
| void | Execute (const std::string &sql) |
| |
| void | CopyBinary (const std::string &table, const std::string &columns, const std::function< void()> &writeRows) |
| |
| void | headerCopy (size_t N, size_t rowSize) |
| |
| void | footerCopy () |
| |
| void | prepareBuffer (size_t N, size_t rowSize) |
| |
| void | beginRow (int16_t nCols) |
| |
| void | appendRaw (const void *data, size_t len) |
| |
| void | appendField (const void *data, size_t len) |
| |
| void | appendBool (bool b) |
| |
| void | appendInt (int v) |
| |
| void | appendDouble (double d) |
| |
Definition at line 17 of file Connection.hpp.
◆ Connection()
| PluginSQL::Connection::Connection |
( |
const std::string & |
user, |
|
|
const std::string & |
pass, |
|
|
const std::string & |
host, |
|
|
int |
port, |
|
|
const std::string & |
dbname |
|
) |
| |
|
inline |
◆ ~Connection()
| PluginSQL::Connection::~Connection |
( |
| ) |
|
|
inline |
◆ appendBool()
| void PluginSQL::Connection::appendBool |
( |
bool |
b | ) |
|
|
inline |
◆ appendDouble()
| void PluginSQL::Connection::appendDouble |
( |
double |
d | ) |
|
|
inline |
◆ appendField()
| void PluginSQL::Connection::appendField |
( |
const void * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inline |
◆ appendInt()
| void PluginSQL::Connection::appendInt |
( |
int |
v | ) |
|
|
inline |
◆ appendRaw()
| void PluginSQL::Connection::appendRaw |
( |
const void * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inline |
◆ beginRow()
| void PluginSQL::Connection::beginRow |
( |
int16_t |
nCols | ) |
|
|
inline |
◆ CopyBinary()
| void PluginSQL::Connection::CopyBinary |
( |
const std::string & |
table, |
|
|
const std::string & |
columns, |
|
|
const std::function< void()> & |
writeRows |
|
) |
| |
|
inline |
◆ Execute()
| void PluginSQL::Connection::Execute |
( |
const std::string & |
sql | ) |
|
|
inline |
◆ footerCopy()
| void PluginSQL::Connection::footerCopy |
( |
| ) |
|
|
inline |
◆ headerCopy()
| void PluginSQL::Connection::headerCopy |
( |
size_t |
N, |
|
|
size_t |
rowSize |
|
) |
| |
|
inline |
◆ prepareBuffer()
| void PluginSQL::Connection::prepareBuffer |
( |
size_t |
N, |
|
|
size_t |
rowSize |
|
) |
| |
|
inline |
◆ conn
| PGconn* PluginSQL::Connection::conn = nullptr |
|
private |
◆ rowBuf
The documentation for this class was generated from the following file: