getColumnType() — supabase Function Reference
Architecture documentation for the getColumnType() function in gridColumns.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 8b569225_6cd6_9d1c_0356_7e06bb83c474["getColumnType()"] 68372542_2f36_da50_23ab_dbe74b8156c6["getGridColumns()"] 68372542_2f36_da50_23ab_dbe74b8156c6 -->|calls| 8b569225_6cd6_9d1c_0356_7e06bb83c474 6288a2e3_3014_e0fc_a0c2_188dd421e451["isForeignKeyColumn()"] 8b569225_6cd6_9d1c_0356_7e06bb83c474 -->|calls| 6288a2e3_3014_e0fc_a0c2_188dd421e451 eb97c9e4_125a_5d61_fc91_d6d56c03fb2d["isNumericalColumn()"] 8b569225_6cd6_9d1c_0356_7e06bb83c474 -->|calls| eb97c9e4_125a_5d61_fc91_d6d56c03fb2d 6a1e17bd_9346_245e_3b80_fdae72ba45fe["isArrayColumn()"] 8b569225_6cd6_9d1c_0356_7e06bb83c474 -->|calls| 6a1e17bd_9346_245e_3b80_fdae72ba45fe 16f7beff_a794_a6e7_eb9f_4726fc73b669["isJsonColumn()"] 8b569225_6cd6_9d1c_0356_7e06bb83c474 -->|calls| 16f7beff_a794_a6e7_eb9f_4726fc73b669 cc94f4f7_153d_80de_78c9_5b04a4cb6224["isTextColumn()"] 8b569225_6cd6_9d1c_0356_7e06bb83c474 -->|calls| cc94f4f7_153d_80de_78c9_5b04a4cb6224 da393bec_02b3_6aea_417a_1eab2e9c2744["isCiTextColumn()"] 8b569225_6cd6_9d1c_0356_7e06bb83c474 -->|calls| da393bec_02b3_6aea_417a_1eab2e9c2744 968f597c_c2a5_9970_1b20_e386ade6b9a3["isDateColumn()"] 8b569225_6cd6_9d1c_0356_7e06bb83c474 -->|calls| 968f597c_c2a5_9970_1b20_e386ade6b9a3 150af9e6_b42a_2f74_76d0_2c93d655961b["isTimeColumn()"] 8b569225_6cd6_9d1c_0356_7e06bb83c474 -->|calls| 150af9e6_b42a_2f74_76d0_2c93d655961b 2d798994_ad51_42b4_2226_5d12baacb5e4["isDateTimeColumn()"] 8b569225_6cd6_9d1c_0356_7e06bb83c474 -->|calls| 2d798994_ad51_42b4_2226_5d12baacb5e4 3cff1e15_475c_ae68_ad2d_a4b9462bf761["isBoolColumn()"] 8b569225_6cd6_9d1c_0356_7e06bb83c474 -->|calls| 3cff1e15_475c_ae68_ad2d_a4b9462bf761 5684943d_30e8_f553_2b0a_0526c7b0c9ed["isEnumColumn()"] 8b569225_6cd6_9d1c_0356_7e06bb83c474 -->|calls| 5684943d_30e8_f553_2b0a_0526c7b0c9ed fa288f5a_193f_1b34_c08f_da60572b2f89["isBinaryColumn()"] 8b569225_6cd6_9d1c_0356_7e06bb83c474 -->|calls| fa288f5a_193f_1b34_c08f_da60572b2f89 style 8b569225_6cd6_9d1c_0356_7e06bb83c474 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/grid/utils/gridColumns.tsx lines 257–283
function getColumnType(columnDef: SupaColumn): ColumnType {
if (isForeignKeyColumn(columnDef)) {
return 'foreign_key'
} else if (isNumericalColumn(columnDef.dataType)) {
return 'number'
} else if (isArrayColumn(columnDef.dataType)) {
return 'array'
} else if (isJsonColumn(columnDef.dataType)) {
return 'json'
} else if (isTextColumn(columnDef.dataType)) {
return 'text'
} else if (isCiTextColumn(columnDef.format)) {
return 'citext'
} else if (isDateColumn(columnDef.format)) {
return 'date'
} else if (isTimeColumn(columnDef.format)) {
return 'time'
} else if (isDateTimeColumn(columnDef.format)) {
return 'datetime'
} else if (isBoolColumn(columnDef.dataType)) {
return 'boolean'
} else if (isEnumColumn(columnDef.dataType)) {
return 'enum'
} else if (isBinaryColumn(columnDef.dataType)) {
return 'binary'
} else return 'unknown'
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does getColumnType() do?
getColumnType() is a function in the supabase codebase.
What does getColumnType() call?
getColumnType() calls 12 function(s): isArrayColumn, isBinaryColumn, isBoolColumn, isCiTextColumn, isDateColumn, isDateTimeColumn, isEnumColumn, isForeignKeyColumn, and 4 more.
What calls getColumnType()?
getColumnType() is called by 1 function(s): getGridColumns.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free