Home / Function/ temp_removePostgrestText() — supabase Function Reference

temp_removePostgrestText() — supabase Function Reference

Architecture documentation for the temp_removePostgrestText() function in Description.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  a499bd2a_beff_8a47_0019_b9b891e3cf7c["temp_removePostgrestText()"]
  bfc3d2c2_aa52_25e9_ca07_b80603e71d4d["Description()"]
  bfc3d2c2_aa52_25e9_ca07_b80603e71d4d -->|calls| a499bd2a_beff_8a47_0019_b9b891e3cf7c
  style a499bd2a_beff_8a47_0019_b9b891e3cf7c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/Docs/Description.tsx lines 16–26

const temp_removePostgrestText = (content: string) => {
  const postgrestTextPk = `Note:\nThis is a Primary Key.<pk/>`
  const postgrestTextFk = `Note:\nThis is a Foreign Key to`
  const pkTextPos = content.lastIndexOf(postgrestTextPk)
  const fkTextPos = content.lastIndexOf(postgrestTextFk)

  let cleansed = content
  if (pkTextPos >= 0) cleansed = cleansed.substring(0, pkTextPos)
  if (fkTextPos >= 0) cleansed = cleansed.substring(0, fkTextPos)
  return cleansed
}

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free