Cppgres
Build Postgres extensions in C++
Loading...
Searching...
No Matches
cppgres::datumable_function Concept Reference

Function that operates on values of Postgres types. More...

#include <function.hpp>

Concept definition

template<typename Func>
requires { typename utils::function_traits::function_traits<Func>::argument_types; } &&
requires(Func f) {
{
std::apply(
f,
} -> convertible_into_nullable_datum_or_set_iterator_or_void;
}
Function that operates on values of Postgres types.
Definition: function.hpp:36
Definition: datum.hpp:163
Definition: function_traits.hpp:37

Detailed Description

Function that operates on values of Postgres types.

These functions take cppgres::convertible_from_nullable_datum arguments and returns cppgres::convertible_into_nullable_datum, or cppgres::datumable_iterator (for Set-Returning Functions).