6#include <userver/engine/deadline.hpp>
8#include <userver/storages/postgres/detail/connection_ptr.hpp>
9#include <userver/storages/postgres/detail/query_parameters.hpp>
10#include <userver/storages/postgres/options.hpp>
11#include <userver/storages/postgres/postgres_fwd.hpp>
12#include <userver/storages/postgres/query.hpp>
13#include <userver/storages/postgres/result_set.hpp>
15#include <userver/utils/fast_pimpl.hpp>
16#include <userver/utils/strong_typedef.hpp>
18USERVER_NAMESPACE_BEGIN
27 detail::Connection* conn,
29 const detail::QueryParameters& = {},
30 OptionalCommandControl cmd_ctl = {}
33 detail::Connection* conn,
36 const detail::QueryParameters& = {},
37 OptionalCommandControl cmd_ctl = {}
43 Portal(
const Portal&) =
delete;
51 std::size_t FetchedSoFar()
const;
53 explicit operator
bool()
const {
return !Done(); }
60 static constexpr std::size_t kImplSize = 88;
61 static constexpr std::size_t kImplAlign = 8;
64 USERVER_NAMESPACE::utils::FastPimpl<Impl, kImplSize, kImplAlign> pimpl_;