Expand description
Utility functions for working with pg_sys::HeapTuple
and pg_sys::HeapTupleHeader
structs
Structs
Traits
- Implemented for Rust tuples that can be represented as a Postgres
pg_sys::HeapTupleData
.
Functions
- Given a
pg_sys::Datum
representing a composite row type, return a boxedHeapTupleData
, which can be used by the variousheap_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 attributeattno
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.
- Safety