6#include <userver/storages/postgres/detail/query_parameters.hpp>
7#include <userver/storages/postgres/io/type_traits.hpp>
8#include <userver/storages/postgres/io/user_types.hpp>
9#include <userver/utils/strong_typedef.hpp>
11USERVER_NAMESPACE_BEGIN
28 ParameterStore() =
default;
39 io::IsTypeMappedToSystem<T>() || io::IsTypeMappedToSystemArray<T>(),
40 "Currently only built-in types can be used in ParameterStore"
42 data_.Write(kNoUserTypes, param);
47 bool IsEmpty()
const {
return data_.Size() == 0; }
53 const detail::DynamicQueryParameters& GetInternalData()
const {
return data_; }
59 detail::DynamicQueryParameters data_;