Skip to content

replaceRows

replaceRows(conn, tableName, rows): Promise<void>

Defined in: db/store.ts:204

Replace the whole table content with rows, atomically: the delete and all insert batches share one transaction, so a failure part-way through leaves the previous content intact instead of an emptied or half-filled table.

Same transaction rule as insertRows: no nesting, no overlapping calls on one connection.

AsyncDuckDBConnection

string

RowTuple[]

Promise<void>