|
|
@ -60,6 +60,8 @@ import DurationIcon from '~icons/mdi/timer-outline' |
|
|
|
const renderIcon = (column: ColumnType, abstractType: any) => { |
|
|
|
const renderIcon = (column: ColumnType, abstractType: any) => { |
|
|
|
if (isPrimaryKey(column)) { |
|
|
|
if (isPrimaryKey(column)) { |
|
|
|
return KeyIcon |
|
|
|
return KeyIcon |
|
|
|
|
|
|
|
} else if (isSpecificDBType(column)) { |
|
|
|
|
|
|
|
return SpecificDBTypeIcon |
|
|
|
} else if (isJSON(column)) { |
|
|
|
} else if (isJSON(column)) { |
|
|
|
return JSONIcon |
|
|
|
return JSONIcon |
|
|
|
} else if (isDate(column, abstractType)) { |
|
|
|
} else if (isDate(column, abstractType)) { |
|
|
@ -102,8 +104,6 @@ const renderIcon = (column: ColumnType, abstractType: any) => { |
|
|
|
return NumericIcon |
|
|
|
return NumericIcon |
|
|
|
} else if (isString(column, abstractType)) { |
|
|
|
} else if (isString(column, abstractType)) { |
|
|
|
return StringIcon |
|
|
|
return StringIcon |
|
|
|
} else if (isSpecificDBType(column)) { |
|
|
|
|
|
|
|
return SpecificDBTypeIcon |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return GenericIcon |
|
|
|
return GenericIcon |
|
|
|
} |
|
|
|
} |
|
|
|