![]() |
fb-cpp 0.0.2
A modern C++ wrapper for the Firebird database API
|
Wraps IBatchCompletionState to provide RAII-safe access to batch execution results.
More...
#include <Batch.h>
Public Member Functions | |
| BatchCompletionState (Client &client, FbUniquePtr< fb::IBatchCompletionState > handle) noexcept | |
| Constructs a BatchCompletionState from a Firebird completion state handle. | |
| BatchCompletionState (BatchCompletionState &&o) noexcept | |
| Transfers ownership of another completion state into this one. | |
| BatchCompletionState & | operator= (BatchCompletionState &&)=delete |
| Move assignment is not supported. | |
| BatchCompletionState (const BatchCompletionState &)=delete | |
| Copy construction is not supported. | |
| BatchCompletionState & | operator= (const BatchCompletionState &)=delete |
| Copy assignment is not supported. | |
| unsigned | getSize () |
| Returns the number of messages processed. | |
| int | getState (unsigned pos) |
| Returns the per-message result at the given position. | |
| std::optional< unsigned > | findError (unsigned pos) |
| Finds the next error at or after the given position. | |
| std::vector< std::intptr_t > | getStatus (unsigned pos) |
| Returns the detailed error status vector for the given position. | |
Static Public Attributes | |
| static constexpr int | EXECUTE_FAILED = fb::IBatchCompletionState::EXECUTE_FAILED |
| Per-message state value indicating the message failed to execute. | |
| static constexpr int | SUCCESS_NO_INFO = fb::IBatchCompletionState::SUCCESS_NO_INFO |
| Per-message state value indicating success with no row-count information. | |
Wraps IBatchCompletionState to provide RAII-safe access to batch execution results.
This is a move-only type. The underlying Firebird handle is disposed in the destructor.
|
explicitnoexcept |
Constructs a BatchCompletionState from a Firebird completion state handle.
|
noexcept |
| std::optional< unsigned > BatchCompletionState::findError | ( | unsigned | pos | ) |
| unsigned BatchCompletionState::getSize | ( | ) |
| int BatchCompletionState::getState | ( | unsigned | pos | ) |
| std::vector< std::intptr_t > BatchCompletionState::getStatus | ( | unsigned | pos | ) |
|
staticconstexpr |
|
staticconstexpr |