Home / Function/ getComputeHourlyPrice() — supabase Function Reference

getComputeHourlyPrice() — supabase Function Reference

Architecture documentation for the getComputeHourlyPrice() function in RestoreToNewProject.utils.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  b0f39a75_3ca4_89ba_15aa_05933a2676e4["getComputeHourlyPrice()"]
  8b340c8b_350d_ec99_3cc2_1dfe234b5e94["projectSpecToMonthlyPrice()"]
  8b340c8b_350d_ec99_3cc2_1dfe234b5e94 -->|calls| b0f39a75_3ca4_89ba_15aa_05933a2676e4
  style b0f39a75_3ca4_89ba_15aa_05933a2676e4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/Database/Backups/RestoreToNewProject/RestoreToNewProject.utils.ts lines 58–64

function getComputeHourlyPrice(computeSize: InfraInstanceSize): number {
  if (computeSize === 'pico' || computeSize === 'nano') {
    return 0
  }

  return instanceSizeSpecs[computeSize]?.priceHourly
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free