OZO 「お象」
Boost.Asio and libpq based asynchronous PostgreSQL unofficial header-only C++17 client library.
ozo::failover::role_based_options Struct Reference

#include <ozo/failover/role_based.h>

Description

Options for role-based failover.

These options can be used with ozo::failover::role_based_strategy.

Static Public Attributes

constexpr static option< on_fallback_tag > on_fallback {}
 Handler for fallback event with signature void(error_code, Connection, Fallback), may be useful for logging.
 
constexpr static option< close_connection_tag > close_connection {}
 Close connection policy on retry, possible values true(default), false.
 
constexpr static option< roles_tag > roles {}
 Strategy roles sequence.