summaryrefslogtreecommitdiff
path: root/libpqpp/pq-command.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-04-09 12:06:17 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-04-09 14:00:32 +0100
commitfbad5dcdf8f17d1a3f3ff954f48b55d605d0a50c (patch)
tree38683378917dcea930f220da73c70392bd2363c6 /libpqpp/pq-command.h
parentC++17 (diff)
downloadlibdbpp-postgresql-fbad5dcdf8f17d1a3f3ff954f48b55d605d0a50c.tar.bz2
libdbpp-postgresql-fbad5dcdf8f17d1a3f3ff954f48b55d605d0a50c.tar.xz
libdbpp-postgresql-fbad5dcdf8f17d1a3f3ff954f48b55d605d0a50c.zip
Updates to include C++17 changes for command options.
Diffstat (limited to 'libpqpp/pq-command.h')
-rw-r--r--libpqpp/pq-command.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpqpp/pq-command.h b/libpqpp/pq-command.h
index 2431639..c2674eb 100644
--- a/libpqpp/pq-command.h
+++ b/libpqpp/pq-command.h
@@ -22,10 +22,12 @@ namespace PQ {
bool useCursor;
bool fetchBinary;
};
+ typedef std::shared_ptr<CommandOptions> CommandOptionsPtr;
+ typedef std::shared_ptr<const CommandOptions> CommandOptionsCPtr;
class Command : public virtual DB::Command {
public:
- Command(Connection *, const std::string & sql, const DB::CommandOptions *);
+ Command(Connection *, const std::string & sql, const DB::CommandOptionsCPtr &);
virtual ~Command() = 0;
void bindParamI(unsigned int, int) override;