diff options
Diffstat (limited to 'src/server/database/Database/PreparedStatement.h')
-rw-r--r-- | src/server/database/Database/PreparedStatement.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/server/database/Database/PreparedStatement.h b/src/server/database/Database/PreparedStatement.h index 33ef04287cd..7d13e81c395 100644 --- a/src/server/database/Database/PreparedStatement.h +++ b/src/server/database/Database/PreparedStatement.h @@ -18,8 +18,10 @@ #ifndef _PREPAREDSTATEMENT_H #define _PREPAREDSTATEMENT_H -#include <future> +#include "Define.h" #include "SQLOperation.h" +#include <future> +#include <vector> #ifdef __APPLE__ #undef TYPE_BOOL @@ -81,6 +83,7 @@ class TC_DATABASE_API PreparedStatement PreparedStatement(uint32 index, uint8 capacity); ~PreparedStatement(); + void setNull(const uint8 index); void setBool(const uint8 index, const bool value); void setUInt8(const uint8 index, const uint8 value); void setUInt16(const uint8 index, const uint16 value); @@ -94,7 +97,6 @@ class TC_DATABASE_API PreparedStatement void setDouble(const uint8 index, const double value); void setString(const uint8 index, const std::string& value); void setBinary(const uint8 index, const std::vector<uint8>& value); - void setNull(const uint8 index); protected: void BindParameters(MySQLPreparedStatement* stmt); @@ -147,9 +149,6 @@ class TC_DATABASE_API MySQLPreparedStatement std::string getQueryString() const; private: - void setValue(MYSQL_BIND* param, enum_field_types type, const void* value, uint32 len, bool isUnsigned); - - private: MYSQL_STMT* m_Mstmt; uint32 m_paramCount; std::vector<bool> m_paramsSet; @@ -160,9 +159,6 @@ class TC_DATABASE_API MySQLPreparedStatement MySQLPreparedStatement& operator=(MySQLPreparedStatement const& right) = delete; }; -typedef std::future<PreparedQueryResult> PreparedQueryResultFuture; -typedef std::promise<PreparedQueryResult> PreparedQueryResultPromise; - //- Lower-level class, enqueuable operation class TC_DATABASE_API PreparedStatementTask : public SQLOperation { |