userver: storages::mysql::ExecutionResult Struct Reference
⚠️ 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
storages::mysql::ExecutionResult Struct Referencefinal

Metadata for an execution of a statement that doesn't expect a result set (INSERT, UPDATE, DELETE). More...

#include </data/code/service_template/third_party/userver/mysql/include/userver/storages/mysql/execution_result.hpp>

Public Attributes

std::uint64_t rows_affected {}
 
std::uint64_t last_insert_id {}
 LastInsertId, if any, or zero.
 

Detailed Description

Metadata for an execution of a statement that doesn't expect a result set (INSERT, UPDATE, DELETE).

Definition at line 13 of file execution_result.hpp.

Member Data Documentation

◆ last_insert_id

std::uint64_t storages::mysql::ExecutionResult::last_insert_id {}

LastInsertId, if any, or zero.

Definition at line 19 of file execution_result.hpp.

◆ rows_affected

std::uint64_t storages::mysql::ExecutionResult::rows_affected {}

Amount of rows that statement affected. Consult MySQL docs for better understanding.

Definition at line 16 of file execution_result.hpp.


The documentation for this struct was generated from the following file: