Cppgres
Build Postgres extensions in C++
|
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. | |
Backend management.
|
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.
|
inlinestatic |
get current backend type