pub fn member_name(&self, used_in_table: &Table) -> String {
        let has_conflict = false;
        if self.is_has_one {
            if has_conflict {
                let suffix = "_1";
                return format!("{}{}", self.column.unwrap().name, suffix);
            } else {
                return self.column.unwrap().condense_name();
            }
        }
        if self.is_ext {
            if has_conflict {
                let suffix = "_1";
                return format!("{}{}", self.table.name, suffix);
            } else {
                return self.table.condensed_member_name(used_in_table);
            }
        }
        if self.is_has_many && self.is_direct {
            if has_conflict {
                let suffix = "_1m";
                return format!("{}{}", self.table.name, suffix);
            } else {
                return self.table.name.to_owned();
            }

        }
        if self.is_has_many && !self.is_direct {
            if has_conflict {
                let suffix = "_mm";
                return format!("{}{}", self.table.name, suffix);
            } else {
                return self.table.name.to_owned();
            }
        }
        unreachable!();
    }
/// return the appropriate member name of this reference
/// when used with the table in context
/// will have to use another name if the comed up name
/// already in the column names
/// 1. the concise name of the referred/referrring table
/// 2. the name of the referred/referring table
/// 3. the appended column_name and the table name
/// 4. the table_name appended with HasMany, or HasOne
/// 1:1, 1:M, M:M
/// 11, 1m mm
return the appropriate member name of this reference
when used with the table in context
will have to use another name if the comed up name
already in the column names
1. the concise name of the referred/referrring table
2. the name of the referred/referring table
3. the appended column_name and the table name
4. the table_name appended with HasMany, or HasOne
1:1, 1:M, M:M
11, 1m mm
return the appropriate member name of this reference when used with the table in context will have to use another name if the comed up name already in the column names 1 . the concise name of the referred / referrring table 2 . the name of the referred / referring table 3 . the appended column_name and the table name 4 . the table_name appended with HasMany or HasOne 1 : 1 1 : M M : M 11 1m mm
pub fn member_name(&self, used_in_table: &Table) -> String {
        let has_conflict = false;
        if self.is_has_one {
            if has_conflict {
                let suffix = "_1";
                return format!("{}{}", self.column.unwrap().name, suffix);
            } else {
                return self.column.unwrap().condense_name();
            }
        }
        if self.is_ext {
            if has_conflict {
                let suffix = "_1";
                return format!("{}{}", self.table.name, suffix);
            } else {
                return self.table.condensed_member_name(used_in_table);
            }
        }
        if self.is_has_many && self.is_direct {
            if has_conflict {
                let suffix = "_1m";
                return format!("{}{}", self.table.name, suffix);
            } else {
                return self.table.name.to_owned();
            }
        }
        if self.is_has_many && !self.is_direct {
            if has_conflict {
                let suffix = "_mm";
                return format!("{}{}", self.table.name, suffix);
            } else {
                return self.table.name.to_owned();
            }
        }
        unreachable!();
    }
pub fn member_name ( & self , used_in_table : & Table ) -> String { let has_conflict = false ; if self . is_has_one { if has_conflict { let suffix = " " ; return format ! ( " " self column unwrap ( ) name suffix ) ; } else { return self . column . unwrap ( ) . condense_name ( ) ; } } if self . is_ext { if has_conflict { let suffix = " " ; return format ! ( " " self table name suffix ) ; } else { return self . table . condensed_member_name ( used_in_table ) ; } } if self . is_has_many && self . is_direct { if has_conflict { let suffix = " " ; return format ! ( " " self table name suffix ) ; } else { return self . table . name . to_owned ( ) ; } } if self . is_has_many && ! self . is_direct { if has_conflict { let suffix = " " ; return format ! ( " " self table name suffix ) ; } else { return self . table . name . to_owned ( ) ; } } unreachable ! ( ) ; }
return the appropriate member name of this reference
when used with the table in context
will have to use another name if the comed up name
already in the column names
1. the concise name of the referred/referrring table
2. the name of the referred/referring table
3. the appended column_name and the table name
4. the table_name appended with HasMany, or HasOne
1:1, 1:M, M:M
11, 1m mm
return the appropriate member name of this reference when used with the table in context will have to use another name if the comed up name already in the column names 1 . the concise name of the referred / referrring table 2 . the name of the referred / referring table 3 . the appended column_name and the table name 4 . the table_name appended with HasMany or HasOne 1 : 1 1 : M M : M 11 1m mm
&self
used_in_table
&Table
&self
used_in_table
&Table