fn map_nullable(data_str: &str, field: &mut Field) -> Result<()> {
    match data_str {
        "Y" => {
            let mut optional = String::from("Option<");
            optional.push_str(field.field_type());
            optional.push_str(">");
            field.set_field_type(optional);
            field.set_nullable(true);
        }
        "N" => {
            field.set_nullable(false);
        }
        _ => return Err(ErrorKind::Nullable.into()),
    }

    Ok(())
}
/// Map a nullable column to an `Option` field.
Map a nullable column to an `Option` field.
Map a nullable column to an ` Option ` field .
fn map_nullable(data_str: &str, field: &mut Field) -> Result<()> {
    match data_str {
        "Y" => {
            let mut optional = String::from("Option<");
            optional.push_str(field.field_type());
            optional.push_str(">");
            field.set_field_type(optional);
            field.set_nullable(true);
        }
        "N" => {
            field.set_nullable(false);
        }
        _ => return Err(ErrorKind::Nullable.into()),
    }
    Ok(())
}
fn map_nullable ( data_str : & str , field : & mut Field ) -> Result < ( ) > { match data_str { " " => { let mut optional = String :: from ( " " ) ; optional . push_str ( field . field_type ( ) ) ; optional . push_str ( " " ) ; field . set_field_type ( optional ) ; field . set_nullable ( true ) ; } " " => { field . set_nullable ( false ) ; } _ => return Err ( ErrorKind :: Nullable . into ( ) ) , } Ok ( ( ) ) }
Map a nullable column to an `Option` field.
Map a nullable column to an ` Option ` field .
data_str
&str
field
&mut Field