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

Function validateTable

src/store/index.ts:398–407  ·  view source on GitHub ↗
(table: Table, tableId: Id)

Source from the content-addressed store, hash-verified

396 objValidate(tables, validateTable, cellInvalid);
397
398 const validateTable = (table: Table, tableId: Id): boolean =>
399 (!hasTablesSchema ||
400 collHas(tablesSchemaMap, tableId) ||
401 /*! istanbul ignore next */
402 (cellInvalid(tableId) as boolean)) &&
403 objValidate(
404 table,
405 (row: Row, rowId: Id): boolean => validateRow(tableId, rowId, row),
406 () => cellInvalid(tableId),
407 );
408
409 const validateRow = (
410 tableId: Id,

Callers 1

setTableFunction · 0.70

Calls 4

collHasFunction · 0.90
objValidateFunction · 0.90
cellInvalidFunction · 0.70
validateRowFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…