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 Portal(detail::Connection* conn,
const Query& query,
28 const detail::QueryParameters& = {},
29 OptionalCommandControl cmd_ctl = {});
30 Portal(detail::Connection* conn,
const PortalName&,
const Query& query,
31 const detail::QueryParameters& = {},
32 OptionalCommandControl cmd_ctl = {});
37 Portal(
const Portal&) =
delete;
45 std::size_t FetchedSoFar()
const;
47 explicit operator
bool()
const {
return !Done(); }
54 static constexpr std::size_t kImplSize = 88;
55 static constexpr std::size_t kImplAlign = 8;
58 USERVER_NAMESPACE::utils::FastPimpl<Impl, kImplSize, kImplAlign> pimpl_;