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::Datumrepresenting a composite row type, return a boxedHeapTupleData, which can be used by the variousheap_getattrmethods - Extract an attribute of a heap tuple and return it as Rust type. This works for either system or user attributes. The given
attnumis properly range-checked. - Similar to
heap_getattr(), but returns extended information about the requested attributeattnois 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
attnumis properly range-checked. - convert a HeapTupleHeader to a Datum.
- Safety