lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::db::ScopedConnection Class Reference

#include <ScopedConnection.h>

Public Member Functions

 ScopedConnection (std::shared_ptr< DatabaseConnectionEntry > connectionEntry)
 
 ~ScopedConnection ()
 
 ScopedConnection (const ScopedConnection &)=delete
 
ScopedConnection & operator= (const ScopedConnection &)=delete
 
 ScopedConnection (ScopedConnection &&other) noexcept
 
ScopedConnection & operator= (ScopedConnection &&other) noexcept
 
Connection & connection () const
 
bool valid () const
 
bool isPooled () const
 

Detailed Description

RAII helper that obtains a database connection.

Constructor & Destructor Documentation

◆ ScopedConnection() [1/3]

lintel::db::ScopedConnection::ScopedConnection ( std::shared_ptr< DatabaseConnectionEntry >  connectionEntry)
explicit

◆ ~ScopedConnection()

lintel::db::ScopedConnection::~ScopedConnection ( )

◆ ScopedConnection() [2/3]

lintel::db::ScopedConnection::ScopedConnection ( const ScopedConnection &  )
delete

◆ ScopedConnection() [3/3]

lintel::db::ScopedConnection::ScopedConnection ( ScopedConnection &&  other)
noexcept

Member Function Documentation

◆ connection()

Connection & lintel::db::ScopedConnection::connection ( ) const

◆ isPooled()

bool lintel::db::ScopedConnection::isPooled ( ) const

◆ operator=() [1/2]

ScopedConnection & lintel::db::ScopedConnection::operator= ( const ScopedConnection &  )
delete

◆ operator=() [2/2]

ScopedConnection & lintel::db::ScopedConnection::operator= ( ScopedConnection &&  other)
noexcept

◆ valid()

bool lintel::db::ScopedConnection::valid ( ) const

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