summaryrefslogtreecommitdiff
path: root/libpqpp/pq-command.h
diff options
context:
space:
mode:
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;