Expand description
Utility functions for working with pg_sys::HeapTuple
and pg_sys::HeapTupleHeader
structs
Structs§
Traits§
- Into
Heap Tuple - Implemented for Rust tuples that can be represented as a Postgres
pg_sys::HeapTupleData
.
Functions§
- composite_
row_ type_ make_ tuple - Given a
pg_sys::Datum
representing a composite row type, return a boxedHeapTupleData
, which can be used by the variousheap_getattr
methods - heap_
getattr - 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. - heap_
getattr_ datum_ ex - Similar to
heap_getattr()
, but returns extended information about the requested attributeattno
is 1-based - heap_
getattr_ ⚠raw - 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. - heap_
tuple_ get_ datum - convert a HeapTupleHeader to a Datum.
- heap_
tuple_ header_ get_ datum_ length - Safety
- heap_
tuple_ ⚠header_ get_ type_ id - heap_
tuple_ ⚠header_ get_ typmod