Move a few functions from select_query to query
This commit is contained in:
+14
-1
@@ -18,4 +18,17 @@ void actual_add_param(Query& query, const OptionalBool& val)
|
||||
query.params.push_back("1");
|
||||
else
|
||||
query.params.push_back("-1");
|
||||
}
|
||||
}
|
||||
|
||||
Query& operator<<(Query& query, const char* str)
|
||||
{
|
||||
query.body += str;
|
||||
return query;
|
||||
}
|
||||
|
||||
Query& operator<<(Query& query, const std::string& str)
|
||||
{
|
||||
query.body += "?";
|
||||
actual_add_param(query, str);
|
||||
return query;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user