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

Function getOrCreateTable

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:1431–1436  ·  view source on GitHub ↗
(tableId)

Source from the content-addressed store, hash-verified

1429 return rowId;
1430 };
1431 const getOrCreateTable = (tableId) => mapEnsure(tablesMap, tableId, () => {
1432 tableIdsChanged(tableId, 1);
1433 mapSet(tablePoolFunctions, tableId, getPoolFunctions());
1434 mapSet(tableCellIds, tableId, mapNew());
1435 return mapNew();
1436 });
1437 const delValidTable = (tableId) => {
1438 if (whileMutating(() => middleware[8]?.(tableId)) ?? true) {
1439 return setValidTable(tableId, {}, true);

Callers 4

setRowFunction · 0.70
addRowFunction · 0.70
setPartialRowFunction · 0.70
setCellFunction · 0.70

Calls 5

mapEnsureFunction · 0.70
tableIdsChangedFunction · 0.70
mapSetFunction · 0.70
getPoolFunctionsFunction · 0.70
mapNewFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…