Cppgres
Build Postgres extensions in C++
Loading...
Searching...
No Matches
cppgres::spi_plan< Args > Struct Template Reference

Public Member Functions

 spi_plan (spi_plan &&p)
 
 operator::SPIPlanPtr ()
 
void keep ()
 
::SPIPlanPtr release () noexcept
 Releases ownership of the plan to the caller.
 

Friends

struct spi_executor
 

Member Function Documentation

◆ release()

template<convertible_from_nullable_datum... Args>
::SPIPlanPtr cppgres::spi_plan< Args >::release ( )
inlinenoexcept

Releases ownership of the plan to the caller.

Returns the raw plan pointer and disarms this object's destructor. Typically used after keep() when the plan's lifetime is managed elsewhere (for example, stored in a procedural language's function AST).


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