Cppgres
Build Postgres extensions in C++
Loading...
Searching...
No Matches
cppgres::resource_owner Struct Reference

RAII-managed resource owner. More...

#include <resource_owner.hpp>

Public Member Functions

 resource_owner (const char *name, ::ResourceOwner parent=nullptr)
 
 resource_owner (const resource_owner &)=delete
 
resource_owneroperator= (const resource_owner &)=delete
 
 resource_owner (resource_owner &&other) noexcept
 
resource_owneroperator= (resource_owner &&other) noexcept
 
 operator::ResourceOwner () const
 
::ResourceOwner release () noexcept
 Disown the resource owner and return it.
 

Detailed Description

RAII-managed resource owner.

Creates a resource owner (ResourceOwnerCreate) on construction and, if still owning at destruction, releases the plan cache references it holds and deletes it. Ownership can be relinquished with release().


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