175
175
drizzle_con_st b_;
181
query_c(connection_c& con, const std::string& in = "") :
187
void operator=(const std::string& v)
193
void operator+=(const std::string& v)
198
query_c& p_name(const std::string& v)
200
std::vector<char> r(2 * v.size() + 2);
201
r.resize(drizzle_escape_string(&r.front() + 1, v.data(), v.size()) + 2);
204
p_raw(&r.front(), r.size());
208
query_c& p_raw(const char* v, size_t sz)
210
size_t i = in_.find('?');
211
assert(i != std::string::npos);
212
if (i == std::string::npos)
214
out_.append(in_.substr(0, i));
220
query_c& p_raw(const std::string& v)
222
return p_raw(v.data(), v.size());
225
query_c& p(const std::string& v)
227
std::vector<char> r(2 * v.size() + 2);
228
r.resize(drizzle_escape_string(&r.front() + 1, v.data(), v.size()) + 2);
231
p_raw(&r.front(), r.size());
235
query_c& p(long long)
240
drizzle_return_t execute(result_c& result)
242
return con_.query(result, read());
245
std::string read() const