Module pgx::htup

source · []
Expand description

Utility functions for working with pg_sys::HeapTuple and pg_sys::HeapTupleHeader structs

Structs

Functions

Given a pg_sys::Datum representing a composite row type, return a boxed HeapTupleData, which can be used by the various heap_getattr methods

Extract an attribute of a heap tuple and return it as Rust type. This works for either system or user attributes. The given attnum is properly range-checked.

Similar to heap_getattr(), but returns extended information about the requested attribute attno is 1-based

Extract an attribute of a heap tuple and return it as a Datum. This works for either system or user attributes. The given attnum is properly range-checked.

convert a HeapTupleHeader to a Datum.