18#ifndef _PREPAREDSTATEMENT_H
19#define _PREPAREDSTATEMENT_H
50 static std::string
ToString(T value);
52 static std::string
ToString(
bool value);
55 static std::string
ToString(std::string
const& value);
56 static std::string
ToString(std::vector<uint8>
const& value);
57 static std::string
ToString(std::nullptr_t);
69 void setNull(
const uint8 index);
70 void setBool(
const uint8 index,
const bool value);
71 void setUInt8(
const uint8 index,
const uint8 value);
72 void setUInt16(
const uint8 index,
const uint16 value);
73 void setUInt32(
const uint8 index,
const uint32 value);
74 void setUInt64(
const uint8 index,
const uint64 value);
75 void setInt8(
const uint8 index,
const int8 value);
76 void setInt16(
const uint8 index,
const int16 value);
77 void setInt32(
const uint8 index,
const int32 value);
78 void setInt64(
const uint8 index,
const int64 value);
79 void setFloat(
const uint8 index,
const float value);
80 void setDouble(
const uint8 index,
const double value);
81 void setString(
const uint8 index,
const std::string& value);
82 void setStringView(
const uint8 index,
const std::string_view value);
83 void setBinary(
const uint8 index,
const std::vector<uint8>& value);
84 template <
size_t Size>
87 std::vector<uint8> vec(value.begin(), value.end());
88 setBinary(index, vec);
92 std::vector<PreparedStatementData>
const&
GetParameters()
const {
return statement_data; }
std::shared_ptr< PreparedResultSet > PreparedQueryResult
PreparedStatementBase(PreparedStatementBase const &right)=delete
PreparedStatementBase & operator=(PreparedStatementBase const &right)=delete
void setBinary(const uint8 index, std::array< uint8, Size > const &value)
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
static std::string ToString(T value)
std::variant< bool, uint8, uint16, uint32, uint64, int8, int16, int32, int64, float, double, std::string, std::vector< uint8 >, std::nullptr_t > data