droplet 1.3.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
ConnectionLease Class Reference

#include <ConnectionPool.hpp>

Collaboration diagram for ConnectionLease:

Public Member Functions

 ConnectionLease () noexcept=default
 ConnectionLease (ConnectionPool &pool, std::unique_ptr< NativeDatabase::Connection > conn) noexcept
 ConnectionLease (ConnectionLease &&other) noexcept
ConnectionLease & operator= (ConnectionLease &&other) noexcept
 ~ConnectionLease ()
 ConnectionLease (const ConnectionLease &)=delete
ConnectionLease & operator= (const ConnectionLease &)=delete
 operator bool () const noexcept
void discard () noexcept
NativeDatabase::Connection & get () noexcept

Constructor & Destructor Documentation

◆ ConnectionLease() [1/4]

ConnectionLease::ConnectionLease ( )
defaultnoexcept

◆ ConnectionLease() [2/4]

ConnectionLease::ConnectionLease ( ConnectionPool & pool,
std::unique_ptr< NativeDatabase::Connection > conn )
noexcept

◆ ConnectionLease() [3/4]

ConnectionLease::ConnectionLease ( ConnectionLease && other)
noexcept

◆ ~ConnectionLease()

ConnectionLease::~ConnectionLease ( )

◆ ConnectionLease() [4/4]

ConnectionLease::ConnectionLease ( const ConnectionLease & )
delete

Member Function Documentation

◆ discard()

void ConnectionLease::discard ( )
inlinenoexcept

◆ get()

NativeDatabase::Connection & ConnectionLease::get ( )
inlinenodiscardnoexcept

◆ operator bool()

ConnectionLease::operator bool ( ) const
inlineexplicitnodiscardnoexcept

◆ operator=() [1/2]

ConnectionLease & ConnectionLease::operator= ( ConnectionLease && other)
noexcept

◆ operator=() [2/2]

ConnectionLease & ConnectionLease::operator= ( const ConnectionLease & )
delete

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