formatRowsForCSV() — supabase Function Reference
Architecture documentation for the formatRowsForCSV() function in Header.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 461e5ae4_2848_627b_8597_976e56b82b69["formatRowsForCSV()"] 45a20a70_0227_f399_758d_7761ce34992b["RowHeader()"] 45a20a70_0227_f399_758d_7761ce34992b -->|calls| 461e5ae4_2848_627b_8597_976e56b82b69 086809de_30bd_4e91_96d1_11674285a4fc["RowHeader()"] 086809de_30bd_4e91_96d1_11674285a4fc -->|calls| 461e5ae4_2848_627b_8597_976e56b82b69 style 461e5ae4_2848_627b_8597_976e56b82b69 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/grid/components/header/Header.utils.ts lines 3–14
export const formatRowsForCSV = ({ rows, columns }: { rows: any[]; columns: string[] }) => {
const formattedRows = rows.map((row) => {
const formattedRow = row
Object.keys(row).map((column) => {
if (typeof row[column] === 'object' && row[column] !== null)
formattedRow[column] = JSON.stringify(formattedRow[column])
})
return formattedRow
})
const csv = Papa.unparse(formattedRows, { columns })
return csv
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does formatRowsForCSV() do?
formatRowsForCSV() is a function in the supabase codebase.
What calls formatRowsForCSV()?
formatRowsForCSV() is called by 2 function(s): RowHeader, RowHeader.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free