Lightweight 0.20260921.0
Loading...
Searching...
No Matches
Lightweight::SqlOperationStatistics Struct Reference

#include <SqlStatistics.hpp>

Public Member Functions

constexpr std::uint64_t Total () const noexcept
 

Public Attributes

std::uint64_t succeeded {}
 Number of operations that completed without raising an ODBC error.
 
std::uint64_t failed {}
 Number of operations that raised an ODBC error.
 
std::uint64_t retried {}
 
SqlLatencyHistogram latency {}
 Latency distribution across both successful and failed operations.
 

Detailed Description

Aggregated counters and latency for one SqlStatisticsOperation class.

Definition at line 133 of file SqlStatistics.hpp.

Member Function Documentation

◆ Total()

constexpr std::uint64_t Lightweight::SqlOperationStatistics::Total ( ) const
inlineconstexprnoexcept

Retrieves the total number of operations recorded.

Returns
succeeded + failed.

Definition at line 152 of file SqlStatistics.hpp.

References failed, and succeeded.

Member Data Documentation

◆ succeeded

std::uint64_t Lightweight::SqlOperationStatistics::succeeded {}

Number of operations that completed without raising an ODBC error.

Definition at line 136 of file SqlStatistics.hpp.

Referenced by Total().

◆ failed

std::uint64_t Lightweight::SqlOperationStatistics::failed {}

Number of operations that raised an ODBC error.

Definition at line 139 of file SqlStatistics.hpp.

Referenced by Total().

◆ retried

std::uint64_t Lightweight::SqlOperationStatistics::retried {}

Number of operations that were transparently retried (e.g. a stale prepared statement re-prepared and re-executed). A retried operation is counted once here and once in succeeded or failed according to its final outcome.

Definition at line 144 of file SqlStatistics.hpp.

◆ latency

SqlLatencyHistogram Lightweight::SqlOperationStatistics::latency {}

Latency distribution across both successful and failed operations.

Definition at line 147 of file SqlStatistics.hpp.


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