6#ifndef _PREPAREDSTATEMENT_H
7#define _PREPAREDSTATEMENT_H
84 void setBinary(
const uint8 index,
const std::vector<uint8>& value);
88 std::vector<uint8>
vec(value.begin(), value.end());
127 void setBinary(
const uint8 index,
const std::vector<uint8>& value,
bool isString);
139 void setValue(MYSQL_BIND* param, enum_field_types type,
const void* value,
uint32 len,
bool isUnsigned);
Skyfire::Future< PreparedQueryResult > PreparedQueryResultFuture
PreparedStatementValueType
void setUInt32(const uint8 index, const uint32 value)
friend class MySQLConnection
friend class PreparedStatement
void setBool(const uint8 index, const bool value)
void setNull(const uint8 index)
MySQLPreparedStatement(MYSQL_STMT *stmt)
void setInt64(const uint8 index, const int64 value)
void setDouble(const uint8 index, const double value)
void setInt8(const uint8 index, const int8 value)
~MySQLPreparedStatement()
PreparedStatement * m_stmt
MySQLPreparedStatement & operator=(MySQLPreparedStatement const &right)=delete
std::string getQueryString(std::string const &sqlPattern) const
void setUInt64(const uint8 index, const uint64 value)
void setUInt16(const uint8 index, const uint16 value)
bool CheckValidIndex(uint8 index)
void setInt32(const uint8 index, const int32 value)
void setUInt8(const uint8 index, const uint8 value)
void setValue(MYSQL_BIND *param, enum_field_types type, const void *value, uint32 len, bool isUnsigned)
void setFloat(const uint8 index, const float value)
void setInt16(const uint8 index, const int16 value)
MySQLPreparedStatement(MySQLPreparedStatement const &right)=delete
void setBinary(const uint8 index, const std::vector< uint8 > &value, bool isString)
std::vector< bool > m_paramsSet
void setBool(const uint8 index, const bool value)
friend class MySQLConnection
void setFloat(const uint8 index, const float value)
void setString(const uint8 index, const std::string &value)
void setInt64(const uint8 index, const int64 value)
MySQLPreparedStatement * m_stmt
void setUInt16(const uint8 index, const uint16 value)
PreparedStatement(uint32 index)
PreparedStatement(PreparedStatement const &right)=delete
friend class PreparedStatementTask
PreparedStatement & operator=(PreparedStatement const &right)=delete
void setUInt64(const uint8 index, const uint64 value)
void setBinary(const uint8 index, const std::vector< uint8 > &value)
void setNull(const uint8 index)
void setBinary(const uint8 index, std::array< uint8, Size > const &value)
void setInt8(const uint8 index, const int8 value)
void setUInt32(const uint8 index, const uint32 value)
std::vector< PreparedStatementData > statement_data
void setInt16(const uint8 index, const int16 value)
friend class MySQLPreparedStatement
void setDouble(const uint8 index, const double value)
void setUInt8(const uint8 index, const uint8 value)
void setInt32(const uint8 index, const int32 value)
PreparedStatementTask(PreparedStatement *stmt)
PreparedQueryResultFuture m_result
PreparedStatement * m_stmt
std::vector< uint8 > binary
PreparedStatementDataUnion data
PreparedStatementValueType type