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.
Parameters
Section titled “Parameters”AsyncDuckDBConnection
tableName
Section titled “tableName”string
RowTuple[]
Returns
Section titled “Returns”Promise<void>