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

Backend management. More...

#include <backend.hpp>

Static Public Member Functions

static backend_type::type type ()
 get current backend type
 
template<typename T >
requires requires(T t, int code) { { t(code) }; }
static void atexit (T &&func)
 Register a callback for when Postgres will be exiting.
 

Detailed Description

Backend management.

Member Function Documentation

◆ atexit()

template<typename T >
requires requires(T t, int code) { { t(code) }; }
static void cppgres::backend::atexit ( T &&  func)
inlinestatic

Register a callback for when Postgres will be exiting.

This allows passing a lambda with a closure (not just a plain C function / lambda without a closure), it'll initialize the closure in the top memory context.

◆ type()

static backend_type::type cppgres::backend::type ( )
inlinestatic

get current backend type

Returns
backend type

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