diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-02-19 21:25:02 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-02-19 21:25:02 +0000 |
commit | feaced0381ac6fe0351fa9dbc3b8cc172618a429 (patch) | |
tree | 512148f1c92aa5bd80496221862a3672ca2db828 /libpqpp/pq-command.h | |
parent | Build most things by default (diff) | |
download | libdbpp-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.h | 6 |
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 - |