Home / Function/ sync() — supabase Function Reference

sync() — supabase Function Reference

Architecture documentation for the sync() function in rootSync.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  fe8c793b_f812_4040_3a41_7f944e978cbd["sync()"]
  5ac3111b_e635_2e95_edf9_68bd0c98535c["syncErrorCodes()"]
  fe8c793b_f812_4040_3a41_7f944e978cbd -->|calls| 5ac3111b_e635_2e95_edf9_68bd0c98535c
  style fe8c793b_f812_4040_3a41_7f944e978cbd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/resources/rootSync.ts lines 7–16

async function sync(): Promise<void> {
  console.log(styleText('magenta', 'Starting sync to database...'))
  const allSyncResults = await Promise.all([syncErrorCodes()])
  if (allSyncResults.some((result) => !result.isOk)) {
    console.error(styleText('bold', styleText('red', 'Sync failed')))
    process.exit(1)
  } else {
    console.log(styleText('bold', styleText('green', 'Sync successful')))
  }
}

Subdomains

Frequently Asked Questions

What does sync() do?
sync() is a function in the supabase codebase.
What does sync() call?
sync() calls 1 function(s): syncErrorCodes.

Analyze Your Own Codebase

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

Try Supermodel Free