18#ifndef _PREPAREDSTATEMENT_H
19#define _PREPAREDSTATEMENT_H
52 static std::string
ToString(T value);
54 static std::string
ToString(
bool value);
57 static std::string
ToString(std::string
const& value);
58 static std::string
ToString(std::vector<uint8>
const& value);
60 static std::string
ToString(std::nullptr_t);
72 void setNull(
uint8 index);
73 void setBool(
uint8 index,
bool value);
82 void setFloat(
uint8 index,
float value);
83 void setDouble(
uint8 index,
double value);
85 void setString(
uint8 index, std::string&& value);
86 void setString(
uint8 index, std::string_view value);
87 void setBinary(
uint8 index, std::vector<uint8>&& value);
88 void setBinary(
uint8 index, std::span<uint8 const> value);
91 std::vector<PreparedStatementData>
const&
GetParameters()
const {
return statement_data; }
std::shared_ptr< PreparedResultSet > PreparedQueryResult
std::chrono::system_clock::time_point SystemTimePoint
PreparedStatementBase(PreparedStatementBase const &right)=delete
PreparedStatementBase & operator=(PreparedStatementBase const &right)=delete
std::vector< PreparedStatementData > statement_data
std::vector< PreparedStatementData > const & GetParameters() const
PreparedStatement(uint32 index, uint8 capacity)
PreparedStatement(PreparedStatement const &right)=delete
PreparedStatement & operator=(PreparedStatement const &right)=delete
void Execute(Creature *me, EventMap &events, uint32 eventId)
std::variant< bool, uint8, uint16, uint32, uint64, int8, int16, int32, int64, float, double, std::string, std::vector< uint8 >, SystemTimePoint, std::nullptr_t > data
static std::string ToString(T value)