Home / Function/ normalizeQuery() — supabase Function Reference

normalizeQuery() — supabase Function Reference

Architecture documentation for the normalizeQuery() function in WithMonitor.utils.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  a6d684c3_e3ea_9b03_57b6_1761cc468109["normalizeQuery()"]
  463d9b1b_4c86_b763_848a_1c62d2508795["aggregateLogsByQuery()"]
  463d9b1b_4c86_b763_848a_1c62d2508795 -->|calls| a6d684c3_e3ea_9b03_57b6_1761cc468109
  style a6d684c3_e3ea_9b03_57b6_1761cc468109 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/QueryPerformance/WithMonitor/WithMonitor.utils.ts lines 126–128

const normalizeQuery = (query: string): string => {
  return query.replace(/\s+/g, ' ').trim()
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free