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

Function loadTables

src/persisters/common/database/tabular.ts:160–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158 : null;
159
160 const loadTables = async (): Promise<Tables> =>
161 objNew(
162 arrayFilter(
163 await promiseAll(
164 mapMap(
165 tablesLoadConfig,
166 async ([tableId, rowIdColumnName, condition], tableName) => [
167 tableId,
168 await loadTable(tableName, rowIdColumnName, condition),
169 ],
170 ),
171 ),
172 (pair) => !objIsEmpty(pair[1]),
173 ),
174 );
175
176 const loadValues = async (): Promise<Values | null> =>
177 valuesLoad

Callers 1

getPersistedFunction · 0.85

Calls 6

objNewFunction · 0.90
arrayFilterFunction · 0.90
promiseAllFunction · 0.90
mapMapFunction · 0.90
objIsEmptyFunction · 0.90
loadTableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…