Home / Function/ operationMatchesRow() — supabase Function Reference

operationMatchesRow() — supabase Function Reference

Architecture documentation for the operationMatchesRow() function in queueConflictResolution.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  d1ec5b53_0ca5_fec8_6eb4_9159f4c4f161["operationMatchesRow()"]
  0744d7d4_22bb_aeff_2a10_29a93f5cb7d7["resolveDeleteRowConflicts()"]
  0744d7d4_22bb_aeff_2a10_29a93f5cb7d7 -->|calls| d1ec5b53_0ca5_fec8_6eb4_9159f4c4f161
  3db10eb3_7ae3_cf84_552c_f4a45ebab72c["rowMatchesIdentifiers()"]
  d1ec5b53_0ca5_fec8_6eb4_9159f4c4f161 -->|calls| 3db10eb3_7ae3_cf84_552c_f4a45ebab72c
  style d1ec5b53_0ca5_fec8_6eb4_9159f4c4f161 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/grid/utils/queueConflictResolution.ts lines 31–46

export function operationMatchesRow(
  operation: QueuedOperation,
  tableId: number,
  rowIdentifiers: Record<string, unknown>
): boolean {
  if (operation.tableId !== tableId) return false

  if (
    operation.type === QueuedOperationType.EDIT_CELL_CONTENT ||
    operation.type === QueuedOperationType.DELETE_ROW
  ) {
    return rowMatchesIdentifiers(operation.payload.rowIdentifiers, rowIdentifiers)
  }

  return false
}

Subdomains

Frequently Asked Questions

What does operationMatchesRow() do?
operationMatchesRow() is a function in the supabase codebase.
What does operationMatchesRow() call?
operationMatchesRow() calls 1 function(s): rowMatchesIdentifiers.
What calls operationMatchesRow()?
operationMatchesRow() is called by 1 function(s): resolveDeleteRowConflicts.

Analyze Your Own Codebase

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

Try Supermodel Free