userver: userver/storages/mysql/execution_result.hpp Source File
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
execution_result.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/storages/mysql/execution_result.hpp
4
5#include <cstdint>
6
7USERVER_NAMESPACE_BEGIN
8
9namespace storages::mysql {
10
11/// @brief Metadata for an execution of a statement that doesn't expect a result
12/// set (INSERT, UPDATE, DELETE).
13struct ExecutionResult final {
14 /// Amount of rows that statement affected. Consult MySQL docs for better
15 /// understanding.
16 std::uint64_t rows_affected{};
17
18 /// LastInsertId, if any, or zero.
19 std::uint64_t last_insert_id{};
20};
21
22} // namespace storages::mysql
23
24USERVER_NAMESPACE_END