Storage key for a table's snapshot at a given row version + column shape.
( workspaceId: string, tableId: string, version: number, shapeHash: string )
| 66 | |
| 67 | /** Storage key for a table's snapshot at a given row version + column shape. */ |
| 68 | function 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 | |
| 77 | async function readRowsVersion(tableId: string): Promise<number> { |
| 78 | const [row] = await db |
no outgoing calls
no test coverage detected