Home / Function/ tempRemovePostgrestText() — supabase Function Reference

tempRemovePostgrestText() — supabase Function Reference

Architecture documentation for the tempRemovePostgrestText() function in Content.utils.ts from the supabase codebase.

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

apps/studio/components/interfaces/ProjectAPIDocs/Content/Content.utils.ts lines 17–27

export const tempRemovePostgrestText = (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 tempRemovePostgrestText() do?
tempRemovePostgrestText() is a function in the supabase codebase.
What calls tempRemovePostgrestText()?
tempRemovePostgrestText() 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