MCPcopy
hub / github.com/tinyplex/tinybase / setRow

Function setRow

src/store/index.ts:1589–1597  ·  view source on GitHub ↗
(tableId: Id, rowId: Id, row: Row)

Source from the content-addressed store, hash-verified

1587 );
1588
1589 const setRow = (tableId: Id, rowId: Id, row: Row): Store =>
1590 fluentTransaction(
1591 (tableId, rowId) =>
1592 validateRow(tableId, rowId, row)
1593 ? setValidRow(tableId, getOrCreateTable(tableId), rowId, row)
1594 : 0,
1595 tableId,
1596 rowId,
1597 );
1598
1599 const addRow = (tableId: Id, row: Row, reuseRowIds = true): Id | undefined =>
1600 transaction(() => {

Callers 3

StateFunction · 0.50
TestFunction · 0.50
StateFunction · 0.50

Calls 4

fluentTransactionFunction · 0.70
validateRowFunction · 0.70
setValidRowFunction · 0.70
getOrCreateTableFunction · 0.70

Tested by 3

StateFunction · 0.40
TestFunction · 0.40
StateFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…