45#include <StormByte/safe/atomic.hxx>
72 void RecordMariaDBError(
unsigned int error_code) noexcept;
73 void RecordMariaDBWarnings(
std::uint64_t count) noexcept;
MariaDB / MySQL backend.
Definition mariadb.hxx:78
MariaDB prepared statement.
Definition prepared_stmt.hxx:78
MariaDB-specific counters layered on common database telemetry.
Definition telemetry.hxx:55
std::uint64_t LockTimeouts() const noexcept
MariaDB lock wait timeout errors (1205).
friend class MariaDB
Definition telemetry.hxx:70
operator StormByte::Safe::String() const override
Flatten common and MariaDB-specific metrics.
friend class PreparedSTMT
Definition telemetry.hxx:71
std::uint64_t Warnings() const noexcept
MariaDB warnings reported after successful operations.
~Telemetry() noexcept override
Out-of-line virtual destructor for DLL-safe destruction.
Telemetry()
Construct zeroed MariaDB counters.
std::uint64_t Deadlocks() const noexcept
MariaDB deadlock errors (1213).
Thread-safe cumulative telemetry for one database connection.
Definition telemetry.hxx:130
STORMBYTE_DECLARE_MAYBE_SAFE(StormByte::Logger::Exception)
MariaDB backend of the Database module.
BackendEvent
Shared error and warning categories for backend-specific telemetry.
Definition telemetry.hxx:88
Root namespace of the StormByte C++ suite.
#define STORMBYTE_DATABASE_PUBLIC
Definition visibility.h:54