#include <userver/storages/clickhouse/options.hpp>
A structure to control timeouts for ClickHouse queries
There is a single parameter, execute
, which limits the overall time the driver spends executing a query, which includes:
In case of a timeout the client gets an exception and the driver drops the connection (no further reuse will take place), otherwise the connection is returned to the pool.
Definition at line 27 of file options.hpp.
Public Member Functions | |
constexpr | CommandControl (std::chrono::milliseconds execute) |
Public Attributes | |
std::chrono::milliseconds | execute |
Overall timeout for a command being executed. | |
|
inlineexplicitconstexpr |
Definition at line 31 of file options.hpp.
std::chrono::milliseconds storages::clickhouse::CommandControl::execute |
Overall timeout for a command being executed.
Definition at line 29 of file options.hpp.