checkDestructiveQuery() — supabase Function Reference
Architecture documentation for the checkDestructiveQuery() function in SQLEditor.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 27a21151_786a_2fa7_99f0_19aeee623ec5["checkDestructiveQuery()"] 5429b87d_ef53_7e21_26c6_6b167a463ebc["SQLEditor()"] 5429b87d_ef53_7e21_26c6_6b167a463ebc -->|calls| 27a21151_786a_2fa7_99f0_19aeee623ec5 style 27a21151_786a_2fa7_99f0_19aeee623ec5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/SQLEditor/SQLEditor.utils.ts lines 51–54
export function checkDestructiveQuery(sql: string) {
const cleanedSql = removeCommentsFromSql(sql)
return destructiveSqlRegex.some((regex) => regex.test(cleanedSql))
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does checkDestructiveQuery() do?
checkDestructiveQuery() is a function in the supabase codebase.
What calls checkDestructiveQuery()?
checkDestructiveQuery() is called by 1 function(s): SQLEditor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free