3#include <userver/storages/mysql/impl/io/common_binders.hpp>
4#include <userver/storages/mysql/impl/io/decimal_binder.hpp>
11void BindInput(
mysql::impl::InputBindingsFwd& binds, std::size_t pos,
13 using SteadyClock = std::chrono::steady_clock;
14 static_assert(!std::is_same_v<SteadyClock::time_point, T> &&
15 !std::is_same_v<std::optional<SteadyClock::time_point>, T>,
16 "Don't store steady_clock times in the database, use "
17 "system_clock instead");
20 ExplicitCRef<T>{field});
24void BindOutput(
mysql::impl::OutputBindingsFwd& binds, std::size_t pos,
27 !std::is_same_v<std::string_view, T> &&
28 !std::is_same_v<std::optional<std::string_view>, T>,
29 "Don't use std::string_view in output params, since it's not-owning");
32 ExplicitRef<T>{field});