#include </data/code/userver/odbc/include/userver/storages/odbc/bulk.hpp>
Outcome snapshot of an ODBC bulk execution.
Processed() is absent when the driver did not provide a reliable count. RowsAffected() is absent when any DML result reported an unknown count. Succeeded() counts only kSuccess and kSuccessWithInfo rows; unknown and diagnostics-unavailable rows are deliberately not assumed successful.
Definition at line 82 of file bulk.hpp.
|
|
| BulkResult (std::size_t requested, std::optional< std::size_t > processed, std::optional< std::size_t > rows_affected, std::vector< BulkRowStatus > statuses) |
| std::size_t | Requested () const noexcept |
| | Number of input rows. Always equals Statuses().size().
|
| std::optional< std::size_t > | Processed () const noexcept |
| | Reliable processed-row count, if supplied by the driver.
|
| std::size_t | Succeeded () const noexcept |
| | Number of rows with a confirmed successful status.
|
| std::optional< std::size_t > | RowsAffected () const noexcept |
| | Checked aggregate DML row count, or null when any count is unknown.
|
| const std::vector< BulkRowStatus > & | Statuses () const noexcept |
| | One status for every requested row, including unused tail rows.
|
◆ Processed()
| std::optional< std::size_t > storages::odbc::BulkResult::Processed |
( |
| ) |
const |
|
inlinenoexcept |
Reliable processed-row count, if supplied by the driver.
Definition at line 95 of file bulk.hpp.
◆ Requested()
| std::size_t storages::odbc::BulkResult::Requested |
( |
| ) |
const |
|
inlinenoexcept |
◆ RowsAffected()
| std::optional< std::size_t > storages::odbc::BulkResult::RowsAffected |
( |
| ) |
const |
|
inlinenoexcept |
Checked aggregate DML row count, or null when any count is unknown.
Definition at line 99 of file bulk.hpp.
◆ Statuses()
| const std::vector< BulkRowStatus > & storages::odbc::BulkResult::Statuses |
( |
| ) |
const |
|
inlinenoexcept |
One status for every requested row, including unused tail rows.
Definition at line 101 of file bulk.hpp.
◆ Succeeded()
| std::size_t storages::odbc::BulkResult::Succeeded |
( |
| ) |
const |
|
inlinenoexcept |
Number of rows with a confirmed successful status.
Definition at line 97 of file bulk.hpp.
The documentation for this class was generated from the following file:
- /data/code/userver/odbc/include/userver/storages/odbc/bulk.hpp