We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b5c90 commit f4d17c1Copy full SHA for f4d17c1
orm_lib/inc/drogon/orm/DbClient.h
@@ -214,6 +214,17 @@ class DROGON_EXPORT DbClient : public trantor::NonCopyable
214
(binder << std::forward<Arguments>(args), 0)...};
215
return internal::SqlAwaiter(std::move(binder));
216
}
217
+
218
+ template <typename T>
219
+ internal::SqlAwaiter execSqlCoro(const std::string &sql,
220
+ std::vector<T> &args) noexcept
221
+ {
222
+ auto binder = *this << sql;
223
+ for (const auto &arg : args) {
224
+ binder << arg;
225
+ }
226
+ return internal::SqlAwaiter(std::move(binder));
227
228
#endif
229
230
/// Streaming-like method for sql execution. For more information, see the
0 commit comments