Cppgres
Build Postgres extensions in C++
Loading...
Searching...
No Matches
cppgres.hpp
Go to the documentation of this file.
1
34#pragma once
35
36#ifndef cppgres_hpp
37#define cppgres_hpp
38
39#include "cppgres/datum.hpp"
40#include "cppgres/error.hpp"
42#include "cppgres/executor.hpp"
43#include "cppgres/function.hpp"
44#include "cppgres/guard.hpp"
45#include "cppgres/imports.h"
46#include "cppgres/memory.hpp"
47#include "cppgres/set.hpp"
48#include "cppgres/types.hpp"
49#include "cppgres/node.hpp"
50#include "cppgres/xact.hpp"
51
65#define postgres_function(name, function) \
66 extern "C" { \
67 PG_FUNCTION_INFO_V1(name); \
68 Datum name(PG_FUNCTION_ARGS) { return cppgres::postgres_function(function)(fcinfo); } \
69 }
70
71#endif // cppgres_hpp