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

Function nextImportStartOrderKey

apps/sim/lib/table/rows/ordering.ts:40–42  ·  view source on GitHub ↗
(tableId: string)

Source from the content-addressed store, hash-verified

38 * the previous batch's last key forward so no per-batch max scan is needed.
39 */
40export async function nextImportStartOrderKey(tableId: string): Promise<string | null> {
41 return maxOrderKey(db, tableId)
42}
43
44/**
45 * Serializes writers that assign `position` for the same table. The row-count

Callers 1

runTableImportFunction · 0.90

Calls 1

maxOrderKeyFunction · 0.85

Tested by

no test coverage detected