userver: userver/storages/mysql/cluster_host_type.hpp Source File
Loading...
Searching...
No Matches
cluster_host_type.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/storages/mysql/cluster_host_type.hpp
4
5USERVER_NAMESPACE_BEGIN
6
7namespace storages::mysql {
8
9/// @brief Enum for selecting the host type to carry query execution.
10enum class ClusterHostType {
11 /// Execute a query on primary host.
13 /// Execute a query on a secondary (replica) host.
14 /// Fallbacks to primary in standalone topology.
16};
17
18} // namespace storages::mysql
19
20USERVER_NAMESPACE_END