Home / Function/ getColumnType() — supabase Function Reference

getColumnType() — supabase Function Reference

Architecture documentation for the getColumnType() function in Param.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  17008518_6c21_525e_04b0_9e407d53b104["getColumnType()"]
  564d1cb6_7086_82b9_d8b3_a8ba32e834f2["Param()"]
  564d1cb6_7086_82b9_d8b3_a8ba32e834f2 -->|calls| 17008518_6c21_525e_04b0_9e407d53b104
  style 17008518_6c21_525e_04b0_9e407d53b104 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/Docs/Param.tsx lines 7–25

function getColumnType(type: string, format: string) {
  // json and jsonb both have type=undefined, so check format instead
  if (type === undefined && (format === 'jsonb' || format === 'json')) return 'json'

  switch (type) {
    case 'string':
      return 'string'
    case 'integer':
      return 'number'
    case 'json':
      return 'json'
    case 'number':
      return 'number'
    case 'boolean':
      return 'boolean'
    default:
      return ''
  }
}

Subdomains

Called By

Frequently Asked Questions

What does getColumnType() do?
getColumnType() is a function in the supabase codebase.
What calls getColumnType()?
getColumnType() is called by 1 function(s): Param.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free