6#include <userver/utils/meta_light.hpp>
17template <
typename T,
typename DbType>
19 decltype(Convert(std::declval<DbType&&>(),
convert::To<T>{}));
21template <
typename T,
typename DbType>
22inline constexpr bool kHasConvert = meta::kIsDetected<HasConvert, T, DbType>;
26template <
typename T,
typename DbType>
27T DoConvert(DbType&& from) {
30 impl::kHasConvert<T, DbType>,
31 "There is no 'T Convert(From&&, storages::mysql::convert::To<T>)' in "
32 "neither namespace of 'T' or `storages::mysql::convert`");
34 return Convert(std::forward<DbType>(from), To<T>{});