userver: storages::clickhouse::ParameterStore Class Reference
Loading...
Searching...
No Matches
storages::clickhouse::ParameterStore Class Reference

#include <userver/storages/clickhouse/parameter_store.hpp>

Detailed Description

Class for dynamic ClickHouse parameter list construction.

storages::Query q{"SELECT {} FROM {} WHERE id = {}"};
params.PushBack("name");
params.PushBack("users");
params.PushBack(42);
EXPECT_NO_THROW(cluster->Execute(q, params));

Definition at line 23 of file parameter_store.hpp.

Public Member Functions

 ParameterStore (const ParameterStore &)=delete
 
 ParameterStore (ParameterStore &&)=default
 
ParameterStoreoperator= (const ParameterStore &)=delete
 
ParameterStoreoperator= (ParameterStore &&)=default
 
template<typename T >
ParameterStorePushBack (const T &param)
 Adds a parameter to the end of the parameter list.
 

Member Function Documentation

◆ PushBack()

template<typename T >
ParameterStore & storages::clickhouse::ParameterStore::PushBack ( const T &  param)
inline

Adds a parameter to the end of the parameter list.

Note
Currently only built-in/system types are supported.

Definition at line 34 of file parameter_store.hpp.


The documentation for this class was generated from the following file: