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 | 0bf706059f8a6df882cac3d6e7e976f4432b4271 (patch) | |
tree | 69d6641af24d31227ed616bf9c0c9ee1f27ea167 /libpqpp/pq-command.h | |
parent | Build most things by default (diff) | |
download | libdbpp-postgresql-0bf706059f8a6df882cac3d6e7e976f4432b4271.tar.bz2 libdbpp-postgresql-0bf706059f8a6df882cac3d6e7e976f4432b4271.tar.xz libdbpp-postgresql-0bf706059f8a6df882cac3d6e7e976f4432b4271.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 - |