pub fn from_row_description_body(body: RowDescriptionBody) -> Result<Arc<[Self]>, Error> {
        Ok(body
            .fields()
            .map(|f| {
                Ok(SimpleColumn::new(
                    f.name().to_string(),
                    Type::from_oid(f.type_oid()),
                    f.format(),
                    f.table_oid() as i32,
                    f.column_id(),
                    f.type_modifier(),
                ))
            })
            .collect::<Vec<_>>()
            .map_err(Error::parse)?
            .into())
    }
/// Converts a row description body into a set of simple columns
Converts a row description body into a set of simple columns
Converts a row description body into a set of simple columns
pub fn from_row_description_body(body: RowDescriptionBody) -> Result<Arc<[Self]>, Error> {
        Ok(body
            .fields()
            .map(|f| {
                Ok(SimpleColumn::new(
                    f.name().to_string(),
                    Type::from_oid(f.type_oid()),
                    f.format(),
                    f.table_oid() as i32,
                    f.column_id(),
                    f.type_modifier(),
                ))
            })
            .collect::<Vec<_>>()
            .map_err(Error::parse)?
            .into())
    }
pub fn from_row_description_body ( body : RowDescriptionBody ) -> Result < Arc < [ Self ] > , Error > { Ok ( body . fields ( ) . map ( | f | { Ok ( SimpleColumn :: new ( f . name ( ) . to_string ( ) , Type :: from_oid ( f . type_oid ( ) ) , f . format ( ) , f . table_oid ( ) as i32 , f . column_id ( ) , f . type_modifier ( ) , ) ) } ) . collect :: < Vec < _ > > ( ) . map_err ( Error :: parse ) ? . into ( ) ) }
Converts a row description body into a set of simple columns
Converts a row description body into a set of simple columns
body
RowDescriptionBody
body
RowDescriptionBody