buildCommand() — supabase Function Reference
Architecture documentation for the buildCommand() function in CreateCronJobSheet.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 728b7fd4_4e71_0349_2f42_872a8daf351d["buildCommand()"] 09d0e98d_8f13_541f_895c_cd43cd0319fd["CreateCronJobSheet()"] 09d0e98d_8f13_541f_895c_cd43cd0319fd -->|calls| 728b7fd4_4e71_0349_2f42_872a8daf351d 94899f8d_07a1_fe5f_f72a_73c30816ebdb["buildHttpRequestCommand()"] 728b7fd4_4e71_0349_2f42_872a8daf351d -->|calls| 94899f8d_07a1_fe5f_f72a_73c30816ebdb style 728b7fd4_4e71_0349_2f42_872a8daf351d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet/CreateCronJobSheet.tsx lines 62–84
const buildCommand = (values: CronJobType) => {
let command = ''
if (values.type === 'edge_function') {
command = buildHttpRequestCommand(
values.method,
values.edgeFunctionName,
values.httpHeaders,
values.httpBody,
values.timeoutMs
)
} else if (values.type === 'http_request') {
command = buildHttpRequestCommand(
values.method,
values.endpoint,
values.httpHeaders,
values.httpBody,
values.timeoutMs
)
} else if (values.type === 'sql_function') {
command = `SELECT ${values.schema}.${values.functionName}()`
}
return command
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does buildCommand() do?
buildCommand() is a function in the supabase codebase.
What does buildCommand() call?
buildCommand() calls 1 function(s): buildHttpRequestCommand.
What calls buildCommand()?
buildCommand() is called by 1 function(s): CreateCronJobSheet.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free