summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-command.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmysqlpp/my-command.h')
-rw-r--r--libmysqlpp/my-command.h67
1 files changed, 33 insertions, 34 deletions
diff --git a/libmysqlpp/my-command.h b/libmysqlpp/my-command.h
index ddb2d11..53f37c5 100644
--- a/libmysqlpp/my-command.h
+++ b/libmysqlpp/my-command.h
@@ -8,41 +8,40 @@
namespace MySQL {
class Connection;
class Command : public virtual DB::Command {
- public:
- Command(const Connection *, const std::string & sql);
- virtual ~Command() = 0;
-
- void bindParamI(unsigned int, int) override;
- void bindParamI(unsigned int, long int) override;
- void bindParamI(unsigned int, long long int) override;
- void bindParamI(unsigned int, unsigned int) override;
- void bindParamI(unsigned int, long unsigned int) override;
- void bindParamI(unsigned int, long long unsigned int) override;
-
- void bindParamB(unsigned int, bool) override;
-
- void bindParamF(unsigned int, double) override;
- void bindParamF(unsigned int, float) override;
-
- void bindParamS(unsigned int, const Glib::ustring&) override;
- void bindParamS(unsigned int, const std::string_view&) override;
-
- void bindParamT(unsigned int, const boost::posix_time::time_duration &) override;
- void bindParamT(unsigned int, const boost::posix_time::ptime &) override;
-
- void bindNull(unsigned int) override;
- protected:
- void bindParams();
- void * realloc(void * buffer, size_t size);
-
- const Connection * c;
- MYSQL_STMT * stmt;
- typedef std::vector<MYSQL_BIND> Binds;
- Binds binds;
- bool paramsNeedBinding;
+ public:
+ Command(const Connection *, const std::string & sql);
+ virtual ~Command() = 0;
+
+ void bindParamI(unsigned int, int) override;
+ void bindParamI(unsigned int, long int) override;
+ void bindParamI(unsigned int, long long int) override;
+ void bindParamI(unsigned int, unsigned int) override;
+ void bindParamI(unsigned int, long unsigned int) override;
+ void bindParamI(unsigned int, long long unsigned int) override;
+
+ void bindParamB(unsigned int, bool) override;
+
+ void bindParamF(unsigned int, double) override;
+ void bindParamF(unsigned int, float) override;
+
+ void bindParamS(unsigned int, const Glib::ustring &) override;
+ void bindParamS(unsigned int, const std::string_view &) override;
+
+ void bindParamT(unsigned int, const boost::posix_time::time_duration &) override;
+ void bindParamT(unsigned int, const boost::posix_time::ptime &) override;
+
+ void bindNull(unsigned int) override;
+
+ protected:
+ void bindParams();
+ void * realloc(void * buffer, size_t size);
+
+ const Connection * c;
+ MYSQL_STMT * stmt;
+ typedef std::vector<MYSQL_BIND> Binds;
+ Binds binds;
+ bool paramsNeedBinding;
};
}
#endif
-
-