Home / Function/ getPITRRetentionDuration() — supabase Function Reference

getPITRRetentionDuration() — supabase Function Reference

Architecture documentation for the getPITRRetentionDuration() function in PITR.utils.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  1b036dc2_2cc7_7355_4d5f_22cb532d4361["getPITRRetentionDuration()"]
  4c57244f_863a_29eb_0856_87d90488f3dd["PITRNotice()"]
  4c57244f_863a_29eb_0856_87d90488f3dd -->|calls| 1b036dc2_2cc7_7355_4d5f_22cb532d4361
  style 1b036dc2_2cc7_7355_4d5f_22cb532d4361 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/Database/Backups/PITR/PITR.utils.ts lines 6–11

export const getPITRRetentionDuration = (addons: ProjectSelectedAddon[]) => {
  const pitrAddon = addons.find((addon) => addon.type === 'pitr')
  if (!pitrAddon) return 0

  return (pitrAddon.variant.meta as any)?.backup_duration_days ?? 0
}

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free