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

Function refreshSchema

src/persisters/common/database/commands.ts:90–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88 collHas(mapGet(schemaMap, tableName), rowIdColumnName);
89
90 const refreshSchema = async (): Promise<void> => {
91 collClear(schemaMap);
92 arrayMap(
93 await querySchema(databaseExecuteCommand, managedTableNames),
94 ({tn, cn}) => setAdd(mapEnsure(schemaMap, tn, setNew<Id>), cn),
95 );
96 };
97
98 const loadTable = async (
99 tableName: string,

Callers 4

getPersistedFunction · 0.85
setPersistedFunction · 0.85
getPersistedFunction · 0.85
setPersistedFunction · 0.85

Calls 4

collClearFunction · 0.90
arrayMapFunction · 0.90
setAddFunction · 0.90
mapEnsureFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…