userver: userver/storages/mysql/impl/io/params_binder_base.hpp Source File
Loading...
Searching...
No Matches
params_binder_base.hpp
1#pragma once
2
3#include <userver/storages/mysql/impl/binder_fwd.hpp>
4
5USERVER_NAMESPACE_BEGIN
6
7namespace storages::mysql::impl::io {
8
9class ParamsBinderBase {
10 public:
11 explicit ParamsBinderBase(std::size_t size);
12
13 ParamsBinderBase(const ParamsBinderBase& other) = delete;
14 ParamsBinderBase(ParamsBinderBase&& other) noexcept;
15
16 InputBindingsFwd& GetBinds();
17
18 virtual std::size_t GetRowsCount() const = 0;
19
20 protected:
21 ~ParamsBinderBase();
22
23 private:
24 InputBindingsPimpl binds_impl_;
25};
26
27} // namespace storages::mysql::impl::io
28
29USERVER_NAMESPACE_END