MCPcopy Index your code
hub / github.com/tinyplex/tinybase / addRow

Function addRow

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:1901–1913  ·  view source on GitHub ↗
(tableId, row, reuseRowIds = true)

Source from the content-addressed store, hash-verified

1899 rowId
1900 );
1901 const addRow = (tableId, row, reuseRowIds = true) => transaction(() => {
1902 let rowId = void 0;
1903 if (validateRow(tableId, rowId, row)) {
1904 tableId = id(tableId);
1905 setValidRow(
1906 tableId,
1907 getOrCreateTable(tableId),
1908 rowId = getNewRowId(tableId, reuseRowIds ? 1 : 0),
1909 row
1910 );
1911 }
1912 return rowId;
1913 });
1914 const setPartialRow = (tableId, rowId, partialRow) => fluentTransaction(
1915 (tableId2, rowId2) => {
1916 if (validateRow(tableId2, rowId2, partialRow, 1)) {

Callers

nothing calls this directly

Calls 6

transactionFunction · 0.70
validateRowFunction · 0.70
idFunction · 0.70
setValidRowFunction · 0.70
getOrCreateTableFunction · 0.70
getNewRowIdFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…