userver: storages::sqlite::infra::ConnectionPtr Class Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
storages::sqlite::infra::ConnectionPtr Class Reference

#include <userver/storages/sqlite/infra/connection_ptr.hpp>

Detailed Description

Pointer-like class that controls lifetime of a parent pool by keeping smart pointer to it.

Definition at line 13 of file connection_ptr.hpp.

Public Member Functions

 ConnectionPtr (std::shared_ptr< Pool > &&pool, std::unique_ptr< impl::Connection > &&connection)
 
 ConnectionPtr (ConnectionPtr &&) noexcept
 
ConnectionPtroperator= (ConnectionPtr &&) noexcept
 
bool IsValid () const noexcept
 
impl::Connection * get () const noexcept
 
impl::Connection & operator* () const
 
impl::Connection * operator-> () const noexcept
 

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