userver: storages::odbc::BulkExecutionError Class Reference
Loading...
Searching...
No Matches
storages::odbc::BulkExecutionError Class Reference

#include </data/code/userver/odbc/include/userver/storages/odbc/bulk.hpp>

Detailed Description

Bulk DML failed after possibly executing a subset of the requested rows.

The result snapshot is observational: execution is never retried after SQLExecute starts. In direct autocommit mode, completed chunks or scalar fallback rows may already be committed. Use Transaction::ExecuteBulk and roll back on failure when atomicity is required.

Definition at line 117 of file bulk.hpp.

Inheritance diagram for storages::odbc::BulkExecutionError:

Public Member Functions

 BulkExecutionError (std::string message, std::vector< DiagnosticRecord > diagnostics, BulkResult result, bool invalid_handle=false)
const BulkResultGetResult () const noexcept
const std::vector< DiagnosticRecord > & GetDiagnostics () const noexcept
 Structured driver diagnostics, in the order returned by ODBC.
bool HasSqlStateClass (std::string_view sql_state_class) const noexcept
 Whether any diagnostic has the specified two-character SQLSTATE class.
bool IsInvalidHandle () const noexcept
 Whether the failed ODBC call returned SQL_INVALID_HANDLE.

Member Function Documentation

◆ GetResult()

const BulkResult & storages::odbc::BulkExecutionError::GetResult ( ) const
inlinenoexcept

Definition at line 126 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