pgrx::fcinfo

Function direct_function_call_as_datum

Source
pub unsafe fn direct_function_call_as_datum(
    func: unsafe fn(_: FunctionCallInfo) -> Datum,
    args: &[Option<Datum>],
) -> Option<Datum>
Expand description

Same as direct_function_call but instead returns the direct Option<pg_sys::Datum> instead of converting it to a value

§Safety

This function is unsafe as the function you’re calling is also unsafe