buildTableEditorUrl() — supabase Function Reference
Architecture documentation for the buildTableEditorUrl() function in SupabaseGrid.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD ad421b8e_07b7_b683_750b_0a14c16256b9["buildTableEditorUrl()"] a20580c3_30b6_e168_8d41_39e761a3cb4b["loadTableEditorStateFromLocalStorage()"] ad421b8e_07b7_b683_750b_0a14c16256b9 -->|calls| a20580c3_30b6_e168_8d41_39e761a3cb4b style ad421b8e_07b7_b683_750b_0a14c16256b9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/grid/SupabaseGrid.utils.ts lines 152–176
export function buildTableEditorUrl({
projectRef = 'default',
tableId,
schema,
}: {
projectRef?: string
tableId: number
schema?: string
}) {
const url = new URL(`${BASE_PATH}/project/${projectRef}/editor/${tableId}`, location.origin)
// If the schema is provided, add it to the URL so that the left sidebar is opened to the correct schema
if (schema) {
url.searchParams.set('schema', schema)
}
const savedState = loadTableEditorStateFromLocalStorage(projectRef, tableId)
if (savedState?.sorts && savedState.sorts.length > 0) {
savedState.sorts?.forEach((sort) => url.searchParams.append('sort', sort))
}
if (savedState?.filters && savedState.filters.length > 0) {
savedState.filters?.forEach((filter) => url.searchParams.append('filter', filter))
}
return url.toString()
}
Domain
Subdomains
Source
Frequently Asked Questions
What does buildTableEditorUrl() do?
buildTableEditorUrl() is a function in the supabase codebase.
What does buildTableEditorUrl() call?
buildTableEditorUrl() calls 1 function(s): loadTableEditorStateFromLocalStorage.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free