Home / Function/ gen() — supabase Function Reference

gen() — supabase Function Reference

Architecture documentation for the gen() function in sdk.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  6b40c33b_2398_14ec_9709_c528b5c5f966["gen()"]
  04134f06_5ea5_37e7_b11f_e60847df256f["gen_v001()"]
  6b40c33b_2398_14ec_9709_c528b5c5f966 -->|calls| 04134f06_5ea5_37e7_b11f_e60847df256f
  style 6b40c33b_2398_14ec_9709_c528b5c5f966 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/generator/sdk.ts lines 8–21

export default async function gen(inputFileName: string, outputDir: string) {
  const spec = yaml.load(fs.readFileSync(inputFileName, 'utf8')) as any
  // console.log('spec', spec)

  switch (spec.sdkspec) {
    case '001':
      await gen_v001(spec, outputDir)
      break

    default:
      console.log('Unrecognized specification version:', spec.sdkspec)
      break
  }
}

Subdomains

Calls

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free