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

Function setTablesSchema

src/store/index.ts:1779–1789  ·  view source on GitHub ↗
(tablesSchema: TablesSchema)

Source from the content-addressed store, hash-verified

1777 );
1778
1779 const setTablesSchema = (tablesSchema: TablesSchema): Store =>
1780 fluentTransaction(() => {
1781 if ((hasTablesSchema = validateTablesSchema(tablesSchema))) {
1782 setValidTablesSchema(tablesSchema);
1783 if (!collIsEmpty(tablesMap)) {
1784 const tables = getTables();
1785 delTables();
1786 setTables(tables);
1787 }
1788 }
1789 });
1790
1791 const setValuesSchema = (valuesSchema: ValuesSchema): Store =>
1792 fluentTransaction(() => {

Callers 1

setSchemaFunction · 0.70

Calls 7

collIsEmptyFunction · 0.90
fluentTransactionFunction · 0.70
validateTablesSchemaFunction · 0.70
setValidTablesSchemaFunction · 0.70
getTablesFunction · 0.70
delTablesFunction · 0.70
setTablesFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…