5#include <userver/storages/clickhouse/execution_result.hpp>
6#include <userver/storages/clickhouse/options.hpp>
8#include <userver/clients/dns/resolver_fwd.hpp>
9#include <userver/utils/statistics/writer.hpp>
11USERVER_NAMESPACE_BEGIN
20class InsertionRequest;
24 Pool(clients::dns::Resolver&, PoolSettings&&);
27 Pool(
const Pool&) =
delete;
28 Pool(Pool&&) =
default;
30 ExecutionResult Execute(OptionalCommandControl,
const Query& query)
const;
32 void Insert(OptionalCommandControl,
const InsertionRequest& request)
const;
35 USERVER_NAMESPACE::utils::statistics::Writer& writer)
const;
37 bool IsAvailable()
const;
40 std::shared_ptr<PoolImpl> impl_;