File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,15 @@ class DROGON_EXPORT DbClient : public trantor::NonCopyable
215215 return internal::SqlAwaiter (std::move (binder));
216216 }
217217
218+ /* *
219+ * @brief Execute a SQL query asynchronously using coroutine support.
220+ * This overload accepts a vector of arguments to bind to the query.
221+ * @tparam T The type of the elements in the vector.
222+ * @param sql The SQL query string to execute.
223+ * @param args A vector of arguments to bind to the query.
224+ * @return A SqlAwaiter object that can be co_awaited to retrieve the query result.
225+ * @note This method is only available when coroutine support is enabled.
226+ */
218227 template <typename T>
219228 internal::SqlAwaiter execSqlCoro (const std::string &sql,
220229 const std::vector<T> &args) noexcept
You can’t perform that action at this time.
0 commit comments