userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
query.hpp
Go to the documentation of this file.
1
#pragma once
2
5
6
#include <fmt/format.h>
7
8
#include <
userver/storages/query.hpp
>
9
#include <
userver/utils/fmt_compat.hpp
>
10
11
#include <userver/storages/clickhouse/io/impl/escape.hpp>
12
13
USERVER_NAMESPACE_BEGIN
14
15
namespace
storages::clickhouse
{
16
18
using
storages::Query;
19
20
namespace
impl {
21
22
template
<
typename
... Args>
23
Query WithArgs(
const
Query& query,
const
Args&... args) {
24
// we should throw on params count mismatch
25
// TODO : https://st.yandex-team.ru/TAXICOMMON-5066
26
return
Query{
27
fmt::format(fmt::runtime(query.
GetStatementView
()), io::impl::Escape(args)...),
28
query.
GetOptionalName
()
29
};
30
}
31
32
}
// namespace impl
33
34
}
// namespace storages::clickhouse
35
36
USERVER_NAMESPACE_END
userver
storages
clickhouse
query.hpp
Generated on
for userver by
Doxygen
1.17.0