summaryrefslogtreecommitdiff
path: root/libpqpp/pq-command.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-02-19 21:25:02 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2016-02-19 21:25:02 +0000
commitfeaced0381ac6fe0351fa9dbc3b8cc172618a429 (patch)
tree512148f1c92aa5bd80496221862a3672ca2db828 /libpqpp/pq-command.h
parentBuild most things by default (diff)
downloadlibdbpp-postgresql-feaced0381ac6fe0351fa9dbc3b8cc172618a429.tar.bz2
libdbpp-postgresql-feaced0381ac6fe0351fa9dbc3b8cc172618a429.tar.xz
libdbpp-postgresql-feaced0381ac6fe0351fa9dbc3b8cc172618a429.zip
Refactor to use std::string as buffer and increase test coverage
Diffstat (limited to 'libpqpp/pq-command.h')
-rw-r--r--libpqpp/pq-command.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libpqpp/pq-command.h b/libpqpp/pq-command.h
index ea32f61..8af2d07 100644
--- a/libpqpp/pq-command.h
+++ b/libpqpp/pq-command.h
@@ -36,12 +36,14 @@ namespace PQ {
Connection * const c;
void paramsAtLeast(unsigned int);
+ template<typename ... T>
+ void paramSet(unsigned int, const char * fmt, const T & ... t);
+ void paramSet(unsigned int, const std::string &);
std::vector<char *> values;
std::vector<int> lengths;
- std::vector<int> formats;
+ std::vector<std::string *> bufs;
};
}
#endif
-