Skip to main content

format_type

Function format_type 

Source
pub fn format_type(oid: Oid) -> Cow<'static, str>
Expand description

The name of a type as format_type(oid, NULL) gives it: the SQL name of a type that has one, such as integer for int4, the element type and [] for an array, - for OID 0 and ??? for an OID that is not a type. The row types of the catalogs that have a fixed OID are not in TypeInfo::all, but they have their name here.