diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-01 19:33:46 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-01 19:44:42 +0000 |
commit | 20d4693ada8ef4e14f464df9d17887b10f7973e8 (patch) | |
tree | 8fa5d1dc415fd01c033e45e227e25e7785396a20 | |
parent | API change to pass command options through (diff) | |
download | libdbpp-20d4693ada8ef4e14f464df9d17887b10f7973e8.tar.bz2 libdbpp-20d4693ada8ef4e14f464df9d17887b10f7973e8.tar.xz libdbpp-20d4693ada8ef4e14f464df9d17887b10f7973e8.zip |
Add hash to base command optionslibdbpp-1.1.0
-rw-r--r-- | libdbpp/command.cpp | 5 | ||||
-rw-r--r-- | libdbpp/command.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/libdbpp/command.cpp b/libdbpp/command.cpp index 97a6518..c6d7a7c 100644 --- a/libdbpp/command.cpp +++ b/libdbpp/command.cpp @@ -17,6 +17,11 @@ DB::ParameterOutOfRange::ParameterOutOfRange() { } +DB::CommandOptions::CommandOptions(std::size_t h) : + hash(h) +{ +} + void DB::Command::bindParamS(unsigned int i, const char * const o) { diff --git a/libdbpp/command.h b/libdbpp/command.h index eaca8a9..2a07a73 100644 --- a/libdbpp/command.h +++ b/libdbpp/command.h @@ -23,7 +23,11 @@ namespace DB { class DLL_PUBLIC CommandOptions { public: + CommandOptions() = default; + CommandOptions(std::size_t hash); virtual ~CommandOptions() = default; + + boost::optional<std::size_t> hash; }; /// Represents the basics of any command to be executed against a database. |