MCPcopy Index your code
hub / github.com/simstudioai/sim / snapshotKey

Function snapshotKey

apps/sim/lib/table/snapshot-cache.ts:68–75  ·  view source on GitHub ↗

Storage key for a table's snapshot at a given row version + column shape.

(
  workspaceId: string,
  tableId: string,
  version: number,
  shapeHash: string
)

Source from the content-addressed store, hash-verified

66
67/** Storage key for a table's snapshot at a given row version + column shape. */
68function snapshotKey(
69 workspaceId: string,
70 tableId: string,
71 version: number,
72 shapeHash: string
73): string {
74 return `table-snapshots/${workspaceId}/${tableId}/v${version}-${shapeHash}.csv`
75}
76
77async function readRowsVersion(tableId: string): Promise<number> {
78 const [row] = await db

Callers 2

deletePreviousVersionFunction · 0.85
getOrCreateTableSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected