fb-cpp 0.0.2
A modern C++ wrapper for the Firebird database API
Loading...
Searching...
No Matches
fbcpp::BatchOptions Class Referencefinal

Configuration options for creating a Batch. More...

#include <Batch.h>

Public Member Functions

bool getMultiError () const
 Returns whether multiple errors are collected per execution.
 
BatchOptionssetMultiError (bool value)
 Enables or disables collection of multiple errors per execution.
 
bool getRecordCounts () const
 Returns whether per-message affected row counts are reported.
 
BatchOptionssetRecordCounts (bool value)
 Enables or disables per-message affected row counts.
 
std::optional< unsigned > getBufferBytesSize () const
 Returns the batch buffer size in bytes, or nullopt for the server default.
 
BatchOptionssetBufferBytesSize (unsigned value)
 Sets the batch buffer size in bytes.
 
BlobPolicy getBlobPolicy () const
 Returns the blob handling policy.
 
BatchOptionssetBlobPolicy (BlobPolicy value)
 Sets the blob handling policy.
 
unsigned getDetailedErrors () const
 Returns the maximum number of detailed error statuses to collect.
 
BatchOptionssetDetailedErrors (unsigned value)
 Sets the maximum number of detailed error statuses to collect.
 

Detailed Description

Configuration options for creating a Batch.

These options map to IXpbBuilder parameters for the IBatch interface. All setters return *this for fluent configuration.

Definition at line 84 of file Batch.h.

Member Function Documentation

◆ getBlobPolicy()

BlobPolicy fbcpp::BatchOptions::getBlobPolicy ( ) const
inline

Returns the blob handling policy.

Definition at line 141 of file Batch.h.

◆ getBufferBytesSize()

std::optional< unsigned > fbcpp::BatchOptions::getBufferBytesSize ( ) const
inline

Returns the batch buffer size in bytes, or nullopt for the server default.

Definition at line 124 of file Batch.h.

◆ getDetailedErrors()

unsigned fbcpp::BatchOptions::getDetailedErrors ( ) const
inline

Returns the maximum number of detailed error statuses to collect.

Definition at line 158 of file Batch.h.

◆ getMultiError()

bool fbcpp::BatchOptions::getMultiError ( ) const
inline

Returns whether multiple errors are collected per execution.

Definition at line 90 of file Batch.h.

◆ getRecordCounts()

bool fbcpp::BatchOptions::getRecordCounts ( ) const
inline

Returns whether per-message affected row counts are reported.

Definition at line 107 of file Batch.h.

◆ setBlobPolicy()

BatchOptions & fbcpp::BatchOptions::setBlobPolicy ( BlobPolicy  value)
inline

Sets the blob handling policy.

Definition at line 149 of file Batch.h.

◆ setBufferBytesSize()

BatchOptions & fbcpp::BatchOptions::setBufferBytesSize ( unsigned  value)
inline

Sets the batch buffer size in bytes.

Definition at line 132 of file Batch.h.

◆ setDetailedErrors()

BatchOptions & fbcpp::BatchOptions::setDetailedErrors ( unsigned  value)
inline

Sets the maximum number of detailed error statuses to collect.

Definition at line 166 of file Batch.h.

◆ setMultiError()

BatchOptions & fbcpp::BatchOptions::setMultiError ( bool  value)
inline

Enables or disables collection of multiple errors per execution.

Definition at line 98 of file Batch.h.

◆ setRecordCounts()

BatchOptions & fbcpp::BatchOptions::setRecordCounts ( bool  value)
inline

Enables or disables per-message affected row counts.

Definition at line 115 of file Batch.h.


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