Cppgres
Build Postgres extensions in C++
Loading...
Searching...
No Matches
cppgres::spi_nonatomic_executor Struct Reference
Inheritance diagram for cppgres::spi_nonatomic_executor:
cppgres::spi_executor cppgres::executor

Public Member Functions

void commit (bool chain=false)
 
void rollback (bool chain=false)
 
 spi_executor ()
 Creates an SPI executor.
 
 spi_executor (spi_opt opts)
 Creates an SPI executor with explicitly chosen options.
 
 spi_executor (int flags)
 
- Public Member Functions inherited from cppgres::spi_executor
 spi_executor ()
 Creates an SPI executor.
 
 spi_executor (spi_opt opts)
 Creates an SPI executor with explicitly chosen options.
 
template<typename Ret , convertible_into_nullable_datum_and_has_a_type... Args>
results< Ret > query (utils::convertible_to_cstring auto query, Args &&...args)
 Queries using a string view.
 
template<typename Ret , convertible_into_nullable_datum_and_has_a_type... Args>
results< Ret > query (utils::convertible_to_cstring auto query, options &&opts, Args &&...args)
 Queries using a string view.
 
template<convertible_into_nullable_datum_and_has_a_type... Args>
spi_plan< Args... > plan (utils::convertible_to_cstring auto query)
 
template<typename Ret , convertible_into_nullable_datum... Args>
results< Ret > query (spi_plan< Args... > &query, Args &&...args)
 
template<typename Ret , convertible_into_nullable_datum... Args>
results< Ret > query (spi_plan< Args... > &query, options &&opts, Args &&...args)
 
template<convertible_into_nullable_datum_and_has_a_type... Args>
uint64_t execute (std::string_view query, Args &&...args)
 
template<convertible_into_nullable_datum_and_has_a_type... Args>
uint64_t execute (std::string_view query, options &&opts, Args &&...args)
 

Additional Inherited Members

- Static Public Member Functions inherited from cppgres::spi_executor
static spi_executorcurrent ()
 The innermost live SPI executor.
 
- Protected Member Functions inherited from cppgres::spi_executor
 spi_executor (int flags)
 
- Static Protected Attributes inherited from cppgres::spi_executor
static std::stack< spi_executor * > executors
 

Member Function Documentation

◆ spi_executor()

cppgres::spi_executor::spi_executor ( spi_opt  opts)
inlineexplicit

Creates an SPI executor with explicitly chosen options.

This is meant for code running outside of the cppgres function-call context (such as raw language handlers) that determines atomicity by itself and therefore can't rely on cppgres::spi_nonatomic_executor's context inference.


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