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

Function deleteAllTableRows

apps/sim/lib/table/import-data.ts:116–118  ·  view source on GitHub ↗
(tableId: string)

Source from the content-addressed store, hash-verified

114
115/** Deletes every row of a table (set-based; the statement-level trigger zeroes `row_count`). */
116export async function deleteAllTableRows(tableId: string): Promise<void> {
117 await db.delete(userTableRows).where(eq(userTableRows.tableId, tableId))
118}
119
120/**
121 * Adds columns to a table during an import (the `createColumns` flow), wrapping the

Callers 1

resolveSetupFunction · 0.90

Calls 2

deleteMethod · 0.65
eqFunction · 0.50

Tested by

no test coverage detected