Home / Function/ getColumnType() — supabase Function Reference

getColumnType() — supabase Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d4cf57d2_f3f5_0351_d67d_71073e4beb5a["getColumnType()"]
  0cad11b0_e11b_7da1_23d3_9a7ebdfd9e02["Entity()"]
  0cad11b0_e11b_7da1_23d3_9a7ebdfd9e02 -->|calls| d4cf57d2_f3f5_0351_d67d_71073e4beb5a
  style d4cf57d2_f3f5_0351_d67d_71073e4beb5a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/ProjectAPIDocs/Content/Entity.tsx lines 13–31

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 type
  }
}

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): Entity.

Analyze Your Own Codebase

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

Try Supermodel Free