Home / Function/ markRowAsDeleted() — supabase Function Reference

markRowAsDeleted() — supabase Function Reference

Architecture documentation for the markRowAsDeleted() function in queueOperationUtils.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  c3ed25f2_a5bf_3779_0009_261419f29eb9["markRowAsDeleted()"]
  16d57069_e009_dae3_11f3_3e1e07423636["reapplyOptimisticUpdates()"]
  16d57069_e009_dae3_11f3_3e1e07423636 -->|calls| c3ed25f2_a5bf_3779_0009_261419f29eb9
  a988b2a0_5cc9_1ce7_ff1f_e6e71ffd3e3c["queueRowDeletesWithOptimisticUpdate()"]
  a988b2a0_5cc9_1ce7_ff1f_e6e71ffd3e3c -->|calls| c3ed25f2_a5bf_3779_0009_261419f29eb9
  3db10eb3_7ae3_cf84_552c_f4a45ebab72c["rowMatchesIdentifiers()"]
  c3ed25f2_a5bf_3779_0009_261419f29eb9 -->|calls| 3db10eb3_7ae3_cf84_552c_f4a45ebab72c
  style c3ed25f2_a5bf_3779_0009_261419f29eb9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/grid/utils/queueOperationUtils.ts lines 105–116

export function markRowAsDeleted(
  rows: SupaRow[],
  rowIdentifiers: Dictionary<unknown>
): (PendingDeleteRow | SupaRow)[] {
  return rows.map((row): PendingDeleteRow | SupaRow => {
    const rowMatches = rowMatchesIdentifiers(row, rowIdentifiers)
    if (rowMatches) {
      return { ...row, __isDeleted: true }
    }
    return row
  })
}

Subdomains

Frequently Asked Questions

What does markRowAsDeleted() do?
markRowAsDeleted() is a function in the supabase codebase.
What does markRowAsDeleted() call?
markRowAsDeleted() calls 1 function(s): rowMatchesIdentifiers.
What calls markRowAsDeleted()?
markRowAsDeleted() is called by 2 function(s): queueRowDeletesWithOptimisticUpdate, reapplyOptimisticUpdates.

Analyze Your Own Codebase

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

Try Supermodel Free