( tableId: string, rowId: string, workspaceId: string, requestId: string )
| 1294 | * @throws Error if row not found |
| 1295 | */ |
| 1296 | export async function deleteRow( |
| 1297 | tableId: string, |
| 1298 | rowId: string, |
| 1299 | workspaceId: string, |
| 1300 | requestId: string |
| 1301 | ): Promise<void> { |
| 1302 | const deleted = await deleteOrderedRow({ tableId, rowId, workspaceId }) |
| 1303 | if (!deleted) throw new Error('Row not found') |
| 1304 | |
| 1305 | logger.info(`[${requestId}] Deleted row ${rowId} from table ${tableId}`) |
| 1306 | } |
| 1307 | |
| 1308 | /** |
| 1309 | * Updates multiple rows matching a filter. |
no test coverage detected