userver: storages::postgres::Portal Class Reference
Loading...
Searching...
No Matches
storages::postgres::Portal Class Reference

Detailed Description

Definition at line 25 of file portal.hpp.

Public Member Functions

 Portal (detail::Connection *conn, const Query &query, const detail::QueryParameters &={}, OptionalCommandControl cmd_ctl={})
 
 Portal (detail::Connection *conn, const PortalName &, const Query &query, const detail::QueryParameters &={}, OptionalCommandControl cmd_ctl={})
 
 Portal (Portal &&) noexcept
 
Portaloperator= (Portal &&) noexcept
 
 Portal (const Portal &)=delete
 
Portaloperator= (const Portal &)=delete
 
ResultSet Fetch (std::uint32_t n_rows)
 
bool Done () const
 
std::size_t FetchedSoFar () const
 
 operator bool () const
 

Static Public Member Functions

static bool IsSupportedByDriver () noexcept
 

Member Function Documentation

◆ IsSupportedByDriver()

static bool storages::postgres::Portal::IsSupportedByDriver ( )
staticnoexcept

Returns true if CMake option USERVER_FEATURE_PATCH_LIBPQ was set to ON and PostgreSQL portals could be created.

◆ operator bool()

storages::postgres::Portal::operator bool ( ) const
inlineexplicit

Definition at line 47 of file portal.hpp.


The documentation for this class was generated from the following file: